diff options
author | Liran Alon | 2020-03-12 17:54:30 +0100 |
---|---|---|
committer | Paolo Bonzini | 2020-06-10 18:09:53 +0200 |
commit | d6048bfd12e24a0980ba2040cfaa2b101df3fa16 (patch) | |
tree | f2b1a95464637316cb61b8f14073511fd018b00d /include/hw/i386 | |
parent | i386/cpu: Store LAPIC bus frequency in CPU structure (diff) | |
download | qemu-d6048bfd12e24a0980ba2040cfaa2b101df3fa16.tar.gz qemu-d6048bfd12e24a0980ba2040cfaa2b101df3fa16.tar.xz qemu-d6048bfd12e24a0980ba2040cfaa2b101df3fa16.zip |
hw/i386/vmport: Add support for CMD_GETHZ
This command returns to guest information on LAPIC bus frequency and TSC
frequency.
One can see how this interface is used by Linux vmware_platform_setup()
introduced in Linux commit 88b094fb8d4f ("x86: Hypervisor detection and
get tsc_freq from hypervisor").
Reviewed-by: Nikita Leshenko <nikita.leshchenko@oracle.com>
Signed-off-by: Liran Alon <liran.alon@oracle.com>
Message-Id: <20200312165431.82118-16-liran.alon@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/i386')
-rw-r--r-- | include/hw/i386/vmport.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/i386/vmport.h b/include/hw/i386/vmport.h index 7656432358..c380b9c1f0 100644 --- a/include/hw/i386/vmport.h +++ b/include/hw/i386/vmport.h @@ -13,6 +13,7 @@ typedef enum { VMPORT_CMD_VMMOUSE_DATA = 39, VMPORT_CMD_VMMOUSE_STATUS = 40, VMPORT_CMD_VMMOUSE_COMMAND = 41, + VMPORT_CMD_GETHZ = 45, VMPORT_CMD_GET_VCPU_INFO = 68, VMPORT_ENTRIES } VMPortCommand; |