You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/target/i386/hvf
Xiaoyao Li 7a48612306 i386/hvf: Make CPUID_HT supported
Since Commit c6bd2dd634 ("i386/cpu: Set up CPUID_HT in
x86_cpu_expand_features() instead of cpu_x86_cpuid()"), CPUID_HT will be
set in env->features[] in x86_cpu_expand_features() when vcpus >= 2.

Later in x86_cpu_filter_features() it will check against the HVF
supported bits. It will trigger the warning like

    qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:EDX.ht [bit 28]

Add CPUID_HT to HVF supported CPUID bits to fix it.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://lore.kernel.org/r/20250514031652.838763-3-xiaoyao.li@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
3 weeks ago
..
README.md system/cpus: rename qemu_mutex_lock_iothread() to bql_lock() 1 year ago
hvf-cpu.c qom: Have class_init() take a const data argument 1 month ago
hvf-i386.h target/i386/hvf: provide and use simulate_{wrmsr, rdmsr} in emul_ops 2 months ago
hvf.c target/i386/hvf: fix a compilation error 1 month ago
meson.build target/i386: move x86 instruction emulator out of hvf 2 months ago
panic.h x86 hvf cpus: Fix Lesser GPL version number 5 years ago
vmcs.h hvf: Enable RDTSCP support 3 years ago
vmx.h exec/cpu-all: remove system/memory include 2 months ago
x86.c target/i386: move x86 instruction emulator out of hvf 2 months ago
x86_cpuid.c i386/hvf: Make CPUID_HT supported 3 weeks ago
x86_descr.c target/i386/hvf: fix a typo in a type name 3 months ago
x86_descr.h target/i386: move x86 instruction emulator out of hvf 2 months ago
x86_mmu.c target/i386: move x86 instruction emulator out of hvf 2 months ago
x86_mmu.h target/i386/hvf: Use CPUState typedef 1 year ago
x86_task.c target/i386: move x86 instruction emulator out of hvf 2 months ago
x86_task.h target/i386/hvf: fix a typo in a type name 3 months ago
x86hvf.c target/i386: move x86 instruction emulator out of hvf 2 months ago
x86hvf.h target/i386/hvf: move and rename {load, store}_regs 3 months ago

README.md

OS X Hypervisor.framework support in QEMU

These sources (and ../hvf-all.c) are adapted from Veertu Inc's vdhh (Veertu Desktop Hosted Hypervisor) (last known location: https://github.com/veertuinc/vdhh) with some minor changes, the most significant of which were:

  1. Adapt to our current QEMU's CPUState structure and address_space_rw API; many struct members have been moved around (emulated x86 state, xsave_buf) due to historical differences + QEMU needing to handle more emulation targets.
  2. Removal of apic_page and hyperv-related functionality.
  3. More relaxed use of bql_lock.