Dynamic guest virtual machine identifier allocation
AssigneeRed Hat Israel, Ltd.
InventorsMichael Tsirkin, Gal Hammer
Life of this patent
Estimating the term…
Abstract
An example method of updating a virtual machine (VM) identifier (ID) stored in a memory buffer allocated from guest memory includes supplying firmware to a guest running on a VM that is executable on a host machine. The firmware includes instructions to allocate a memory buffer. The method also includes obtaining a buffer address of the memory buffer. The memory buffer is in guest memory and stores a VM ID that identifies a first instance of the VM. The method further includes storing the buffer address into hypervisor memory. The method also includes receiving an indication that the VM ID has been updated. The method further includes using the buffer address stored in hypervisor memory to update the VM ID.
Claims21
(canceled)
A method, comprising:
- receiving, by a guest running on a virtual machine that is executable on a host machine, firmware including instructions to allocate a memory buffer;
- allocating, by the guest, the memory buffer from guest memory, wherein the memory buffer is located at a buffer address in guest memory and stores a first virtual machine identifier (ID) that identifies a first instance of the virtual machine;
- transmitting the buffer address to the hypervisor;
- and
- reading, by the guest, a second virtual machine ID from the memory buffer, the second virtual machine ID identifying a second instance of the virtual machine and being different from the first virtual machine ID.
A system, comprising:
- a guest running on a virtual machine that is executable on a host machine,
- wherein the guest receives firmware including instructions to allocate a memory buffer and allocates the memory buffer from guest memory, wherein the memory buffer is located at a buffer address in guest memory and stores a first virtual machine identifier (ID) that identifies a first instance of the virtual machine,
- wherein the guest transmits the buffer address to a hypervisor and reads a second virtual machine ID from the memory buffer, wherein the second virtual machine ID identifies a second instance of the virtual machine and is different from the first virtual machine ID.
A machine-readable medium comprising a plurality of machine-readable instructions that when executed by one or more processors is adapted to cause the one or more processors to perform a method comprising:
- receiving, by a guest running on a virtual machine that is executable on a host machine, firmware including instructions to allocate a memory buffer;
- allocating, by the guest, the memory buffer from guest memory, wherein the memory buffer is located at a buffer address in guest memory and stores a first virtual machine identifier (ID) that identifies a first instance of the virtual machine;
- transmitting the buffer address to the hypervisor;
- and
- reading, by the guest, a second virtual machine ID from the memory buffer, the second virtual machine ID identifying a second instance of the virtual machine and being different from the first virtual machine ID.
Dependencies are inferred from the claim text.