diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-10-26 13:09:45 +0200 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2011-12-22 14:53:01 -0200 |
commit | cce47516cddfb886da9a03cb9db355958b890dce (patch) | |
tree | b34b4d66d462f259d27336db2619aa880fa471a5 | |
parent | fabacc0f79ccfe9b8b34e6b9ed35ffd17415c918 (diff) |
kvm: x86: Drop redundant apic base and tpr update from kvm_get_sregs
The latter was already commented out, the former is redundant as well.
We always get the latest changes after return from the guest via
kvm_arch_post_run.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r-- | target-i386/kvm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 06f4401df6..d206852904 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -1082,10 +1082,9 @@ static int kvm_get_sregs(CPUState *env) env->cr[3] = sregs.cr3; env->cr[4] = sregs.cr4; - cpu_set_apic_base(env->apic_state, sregs.apic_base); - env->efer = sregs.efer; - //cpu_set_apic_tpr(env->apic_state, sregs.cr8); + + /* changes to apic base and cr8/tpr are read back via kvm_arch_post_run */ #define HFLAG_COPY_MASK \ ~( HF_CPL_MASK | HF_PE_MASK | HF_MP_MASK | HF_EM_MASK | \ |