ACPIVMGENID(4)

πŸ“¦ version 11.0, in nixpkgs unstable

🌸 NAME 🌸

okay so acpivmgenid is literally the ACPI Virtual Machine Generation ID situation, and this page comes from the Kernel Interfaces Manual. bestie, it's giving VM-clone chaos prevention πŸ’…

✨ SYNOPSIS ✨

acpivmgenid* at acpi?

πŸ¦‹ DESCRIPTION πŸ¦‹

acpivmgenid provides a generation ID for virtual machines. No cap.

When starting two otherwise identical virtual machines β€” whether from the same clean image or by cloning snapshots or any other mechanism β€” the VM host may choose a different generation ID. Although this generation ID is not secret, it is incorporated into the entropy(7) pool (with a measure of zero entropy) so that the two virtual machines will produce independent random output. 🌈

If a live VM is cloned, the VM host may change the generation ID in one or both of the clones and notify them through the acpivmgenid device. When this happens, NetBSD will reseed system random number generators, so that output of /dev/urandom and getentropy(3) will be independent in the two clones, and the sysctl(7) variable kern.entropy.epoch will advance to notify applications that they should reseed random number generators from the system entropy pool. πŸ”₯

πŸŽ€ SYSCTLS πŸŽ€

The following sysctl(7) nodes are available:

  • hw.acpivmgenidN.id β€” the current 16-byte VM generation ID. πŸ’–
  • hw.acpivmgenidN.paddr β€” the physical address of the VM generation ID provided by the host. ✨

πŸ‘‘ SEE ALSO πŸ‘‘

πŸ’œ HISTORY πŸ’œ

The acpivmgenid driver first appeared in NetBSD 10.1. iconic.

πŸ’€ BUGS πŸ’€

Currently there is no cheaper way to detect VM generation ID changes than to query sysctl. (Applications deciding whether to reseed random number generators should generally query kern.entropy.epoch, not hw.acpivmgenidN.id.) πŸ™ˆ

lowkey important: if you're deciding whether to reseed, the parenthetical says to generally query kern.entropy.epoch, not hw.acpivmgenidN.id. 🫢

okay bye bestie β€” this page is from Debian, dated August 26, 2024 🫢

πŸ“¦ where this page comes from