hw/i386/vmport: Add support for CMD_GETHZ
authorLiran Alon <liran.alon@oracle.com>
Thu, 12 Mar 2020 16:54:30 +0000 (18:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Jun 2020 16:09:53 +0000 (12:09 -0400)
commitd6048bfd12e24a0980ba2040cfaa2b101df3fa16
treef2b1a95464637316cb61b8f14073511fd018b00d
parent73b994f6d74ec00a1d78daf4145096ff9f0e2982
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>
hw/i386/vmport.c
include/hw/i386/vmport.h