diff options
author | Vladislav Yaroshchuk <yaroshchuk2000@gmail.com> | 2021-01-22 18:05:18 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-02-16 17:15:39 +0100 |
commit | 3b502b0e470867369ba6e0a94e9ba6d91bb176c2 (patch) | |
tree | ebbbf5a11e16808e9d45e26f9e944791a6ee8de3 /target/openrisc/exception_helper.c | |
parent | 118f2aadbc66aaae4e8d52259288e18f2aa4544a (diff) | |
download | qemu-3b502b0e470867369ba6e0a94e9ba6d91bb176c2.zip qemu-3b502b0e470867369ba6e0a94e9ba6d91bb176c2.tar.gz qemu-3b502b0e470867369ba6e0a94e9ba6d91bb176c2.tar.bz2 |
target/i386/hvf: add vmware-cpuid-freq cpu feature
For `-accel hvf` cpu_x86_cpuid() is wrapped with hvf_cpu_x86_cpuid() to
add paravirtualization cpuid leaf 0x40000010
https://lkml.org/lkml/2008/10/1/246
Leaf 0x40000010, Timing Information:
EAX: (Virtual) TSC frequency in kHz.
EBX: (Virtual) Bus (local apic timer) frequency in kHz.
ECX, EDX: RESERVED (Per above, reserved fields are set to zero).
On macOS TSC and APIC Bus frequencies can be readed by sysctl call with
names `machdep.tsc.frequency` and `hw.busfrequency`
This options is required for Darwin-XNU guest to be synchronized with
host
Leaf 0x40000000 not exposes HVF leaving hypervisor signature empty
Signed-off-by: Vladislav Yaroshchuk <yaroshchuk2000@gmail.com>
Message-Id: <20210122150518.3551-1-yaroshchuk2000@gmail.com>
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/openrisc/exception_helper.c')
0 files changed, 0 insertions, 0 deletions