x27;t set CPUID_EXT_MONITOR in kvm_cpu_realizefn()
Zide Chen (2):
vl: Allow multiple -overcommit commands
target/i386: Advertise MWAIT iff host supports
system/vl.c | 4 ++--
target/i386/host-cpu.c| 12
target/i386/kvm/kvm-cpu.c | 11 +--
3 files changed,
n the following example, the cpu-pm command is quietly
overwritten, and it's not easy to notice it without careful inspection.
--overcommit mem-lock=on
--overcommit cpu-pm=on
Fixes: c8c9dc42b7ca ("Remove the deprecated -realtime option")
Suggested-by: Thomas Huth
Signed-off-by: Zi
to kvm_cpu_realizefn().
Fixes: f5cc5a5c1686 ("i386: split cpu accelerators from cpu.c, using
AccelCPUClass")
Fixes: 662175b91ff2 ("i386: reorder call to cpu_exec_realizefn")
Signed-off-by: Zide Chen
---
V3:
- don't set CPUID_EXT_MONITOR in kvm_cpu_realizefn().
- Change title t
Currently, if running "-overcommit cpu-pm=on" on hosts that don't
have MWAIT support, the MWAIT/MONITOR feature is advertised to the
guest and executing MWAIT/MONITOR on the guest triggers #UD.
V2:
- [PATCH 1]: took Thomas' suggestion for more generic fix
- [PATCH 2/3]: no c
u.c, using
AccelCPUClass")
Signed-off-by: Zide Chen
---
target/i386/host-cpu.c| 12
target/i386/kvm/kvm-cpu.c | 11 +--
2 files changed, 9 insertions(+), 14 deletions(-)
diff --git a/target/i386/host-cpu.c b/target/i386/host-cpu.c
index 280e427c017c..8b8bf5afeccf 1006
y add CPUID_EXT_MONITOR.
Thus, call cpu_exec_realizefn before x86_cpu_filter_features to ensure
that it won't expose features not supported by the host.
Fixes: 662175b91ff2 ("i386: reorder call to cpu_exec_realizefn")
Suggested-by: Xiaoyao Li
Signed-off-by: Zide Chen
---
target/i38
n the following example, the cpu-pm command is quietly
overwritten, and it's not easy to notice it without careful inspection.
--overcommit mem-lock=on
--overcommit cpu-pm=on
Fixes: c8c9dc42b7ca ("Remove the deprecated -realtime option")
Suggested-by: Thomas Huth
Signed-off-by: Zide Ch
y add CPUID_EXT_MONITOR.
Thus, call cpu_exec_realizefn before x86_cpu_filter_features to ensure
that it won't expose features not supported by the host.
Fixes: 662175b91ff2 ("i386: reorder call to cpu_exec_realizefn")
Suggested-by: Xiaoyao Li
Signed-off-by: Zide Chen
---
target/i38
Currently, if running "-overcommit cpu-pm=on" on hosts that don't
have MWAIT support, the MWAIT/MONITOR feature is advertised to the
guest and executing MWAIT/MONITOR on the guest triggers #UD.
Zide Chen (3):
vl: Allow multiple -overcommit commands
target/i386: call cpu_exec_r
n the following example, the cpu-pm command is quietly
overwritten, and it's not easy to notice it without careful inspection.
--overcommit mem-lock=on
--overcommit cpu-pm=on
Fixes: c8c9dc42b7ca ("Remove the deprecated -realtime option")
Signed-off-by: Zide Chen
---
system/vl.c
u.c, using
AccelCPUClass")
Signed-off-by: Zide Chen
---
target/i386/host-cpu.c| 12
target/i386/kvm/kvm-cpu.c | 11 +--
2 files changed, 9 insertions(+), 14 deletions(-)
diff --git a/target/i386/host-cpu.c b/target/i386/host-cpu.c
index 280e427c017c..8b8bf5afeccf 1006
11 matches
Mail list logo