mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into staging
target-i386: kernel_irqchip=off fix for KVM # gpg: Signature made Tue 16 Aug 2016 12:55:42 BST # gpg: using RSA key 0x2807936F984DC5A6 # gpg: Good signature from "Eduardo Habkost <ehabkost@redhat.com>" # Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF D1AA 2807 936F 984D C5A6 * remotes/ehabkost/tags/x86-pull-request: target-i386: kvm: Report kvm_pv_unhalt as unsupported w/o kernel_irqchip Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
@@ -329,6 +329,13 @@ uint32_t kvm_arch_get_supported_cpuid(KVMState *s, uint32_t function,
|
||||
*/
|
||||
cpuid_1_edx = kvm_arch_get_supported_cpuid(s, 1, 0, R_EDX);
|
||||
ret |= cpuid_1_edx & CPUID_EXT2_AMD_ALIASES;
|
||||
} else if (function == KVM_CPUID_FEATURES && reg == R_EAX) {
|
||||
/* kvm_pv_unhalt is reported by GET_SUPPORTED_CPUID, but it can't
|
||||
* be enabled without the in-kernel irqchip
|
||||
*/
|
||||
if (!kvm_irqchip_in_kernel()) {
|
||||
ret &= ~(1U << KVM_FEATURE_PV_UNHALT);
|
||||
}
|
||||
}
|
||||
|
||||
/* fallback for older kernels */
|
||||
|
||||
Reference in New Issue
Block a user