浏览代码

Merge git://git.kernel.org/pub/scm/virt/kvm/kvm

Pull kvm fixlet from Marcelo Tosatti.

* git://git.kernel.org/pub/scm/virt/kvm/kvm:
  KVM: PPC: Emulate dcbf
Linus Torvalds 12 年之前
父节点
当前提交
d93816a63c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/powerpc/kvm/emulate.c

+ 2 - 0
arch/powerpc/kvm/emulate.c

@@ -39,6 +39,7 @@
 #define OP_31_XOP_TRAP      4
 #define OP_31_XOP_TRAP      4
 #define OP_31_XOP_LWZX      23
 #define OP_31_XOP_LWZX      23
 #define OP_31_XOP_TRAP_64   68
 #define OP_31_XOP_TRAP_64   68
+#define OP_31_XOP_DCBF      86
 #define OP_31_XOP_LBZX      87
 #define OP_31_XOP_LBZX      87
 #define OP_31_XOP_STWX      151
 #define OP_31_XOP_STWX      151
 #define OP_31_XOP_STBX      215
 #define OP_31_XOP_STBX      215
@@ -374,6 +375,7 @@ int kvmppc_emulate_instruction(struct kvm_run *run, struct kvm_vcpu *vcpu)
 			emulated = kvmppc_emulate_mtspr(vcpu, sprn, rs);
 			emulated = kvmppc_emulate_mtspr(vcpu, sprn, rs);
 			break;
 			break;
 
 
+		case OP_31_XOP_DCBF:
 		case OP_31_XOP_DCBI:
 		case OP_31_XOP_DCBI:
 			/* Do nothing. The guest is performing dcbi because
 			/* Do nothing. The guest is performing dcbi because
 			 * hardware DMA is not snooped by the dcache, but
 			 * hardware DMA is not snooped by the dcache, but