]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
i386: Enable IA32_MISC_ENABLE MWAIT bit when exposing mwait/monitor
authorWanpeng Li <wanpengli@tencent.com>
Tue, 14 May 2019 06:06:39 +0000 (14:06 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Jun 2019 12:03:01 +0000 (14:03 +0200)
commit4cfd7bab3f5564f6c1a23b06f73d5aa2f957cd16
tree42aee462e1fbf81b5fec70282b83030421465570
parentfdd6d824ef944538eced4f6134d4bafdfbf41b15
i386: Enable IA32_MISC_ENABLE MWAIT bit when exposing mwait/monitor

The CPUID.01H:ECX[bit 3] ought to mirror the value of the MSR
IA32_MISC_ENABLE MWAIT bit and as userspace has control of them
both, it is userspace's job to configure both bits to match on
the initial setup.

Cc: Eduardo Habkost <ehabkost@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Message-Id: <1557813999-9175-1-git-send-email-wanpengli@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c
target/i386/cpu.h