diff options
author | Jun Nakajima <jun.nakajima@intel.com> | 2011-05-27 18:24:21 -0700 |
---|---|---|
committer | Jun Nakajima <jun.nakajima@intel.com> | 2011-05-27 18:24:21 -0700 |
commit | bb0140b925cb2adce03ebc0885067ea3bfd19a20 (patch) | |
tree | 1e5cb53ab8a3cf8da339498754e1a7eda80cb039 /kvm-all.c | |
parent | bd03068d5d287ec638bc834d04f85b4e49404db5 (diff) | |
download | external_qemu-bb0140b925cb2adce03ebc0885067ea3bfd19a20.zip external_qemu-bb0140b925cb2adce03ebc0885067ea3bfd19a20.tar.gz external_qemu-bb0140b925cb2adce03ebc0885067ea3bfd19a20.tar.bz2 |
x86: Workaorund for the KVM GS_BASE MSR save/restore issue.
In some versions of the kvm module in Ubuntu, the host's GS_BASE MSR is not save/restored correctly
when running guests on 64-bit hosts if the qemu/emulator is 32-bit.
This patch implements a workaround in the emulator code.
Change-Id: If3ebe3cb49f377c5d0547c75f6ac3a3ceacdc375
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Diffstat (limited to 'kvm-all.c')
-rw-r--r-- | kvm-all.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -585,7 +585,7 @@ int kvm_cpu_exec(CPUState *env) } kvm_arch_pre_run(env, run); - ret = kvm_vcpu_ioctl(env, KVM_RUN, 0); + ret = kvm_arch_vcpu_run(env); kvm_arch_post_run(env, run); if (ret == -EINTR || ret == -EAGAIN) { |