diff options
author | Alexander Graf <agraf@suse.de> | 2013-01-17 13:50:25 +0100 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2013-02-06 04:33:37 +0000 |
commit | 1a14c25a0b523225ba47a983d094d1b253f2585a (patch) | |
tree | 866f73710543ac0b1e0becdafb6c1b6ee3946fae /arch | |
parent | 6521d6734943f2ecb34f69c403ae91b1fcf11c64 (diff) | |
download | kernel_samsung_smdk4412-1a14c25a0b523225ba47a983d094d1b253f2585a.zip kernel_samsung_smdk4412-1a14c25a0b523225ba47a983d094d1b253f2585a.tar.gz kernel_samsung_smdk4412-1a14c25a0b523225ba47a983d094d1b253f2585a.tar.bz2 |
KVM: PPC: Emulate dcbf
commit d3286144c92ec876da9e30320afa875699b7e0f1 upstream.
Guests can trigger MMIO exits using dcbf. Since we don't emulate cache
incoherent MMIO, just do nothing and move on.
Reported-by: Ben Collins <ben.c@servergy.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Tested-by: Ben Collins <ben.c@servergy.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kvm/emulate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/emulate.c b/arch/powerpc/kvm/emulate.c index 141dce3..2a73d82 100644 --- a/arch/powerpc/kvm/emulate.c +++ b/arch/powerpc/kvm/emulate.c @@ -35,6 +35,7 @@ #define OP_TRAP_64 2 #define OP_31_XOP_LWZX 23 +#define OP_31_XOP_DCBF 86 #define OP_31_XOP_LBZX 87 #define OP_31_XOP_STWX 151 #define OP_31_XOP_STBX 215 @@ -370,6 +371,7 @@ int kvmppc_emulate_instruction(struct kvm_run *run, struct kvm_vcpu *vcpu) kvmppc_set_exit_type(vcpu, EMULATED_MTSPR_EXITS); break; + case OP_31_XOP_DCBF: case OP_31_XOP_DCBI: /* Do nothing. The guest is performing dcbi because * hardware DMA is not snooped by the dcache, but |