diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2010-09-10 17:30:56 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 10:52:41 +0200 |
commit | d47f00a62b2e14b4a811b87bdb9ea1809693a377 (patch) | |
tree | 85f0697d0714818c8f0d92047905782f275c9ce3 /arch/x86/kvm/emulate.c | |
parent | d4f8cf664e4c1fd579df6b6e6378335c9f79d790 (diff) | |
download | kernel_samsung_tuna-d47f00a62b2e14b4a811b87bdb9ea1809693a377.zip kernel_samsung_tuna-d47f00a62b2e14b4a811b87bdb9ea1809693a377.tar.gz kernel_samsung_tuna-d47f00a62b2e14b4a811b87bdb9ea1809693a377.tar.bz2 |
KVM: X86: Propagate fetch faults
KVM currently ignores fetch faults in the instruction
emulator. With nested-npt we could have such faults. This
patch adds the code to handle these.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/emulate.c')
-rw-r--r-- | arch/x86/kvm/emulate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 2b08b78..aead72e 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -1198,6 +1198,9 @@ static int emulate_popf(struct x86_emulate_ctxt *ctxt, *(unsigned long *)dest = (ctxt->eflags & ~change_mask) | (val & change_mask); + if (rc == X86EMUL_PROPAGATE_FAULT) + emulate_pf(ctxt); + return rc; } |