From: Joerg Roedel Subject: [PATCH 0/15] KVM: Make the instruction emulator aware of Nested Virtualization v5 Date: Mon, 4 Apr 2011 12:39:21 +0200 Message-ID: <1301913576-10360-1-git-send-email-joerg.roedel@amd.com> Mime-Version: 1.0 Content-Type: text/plain Cc: To: Avi Kivity , Marcelo Tosatti Return-path: Received: from tx2ehsobe001.messaging.microsoft.com ([65.55.88.11]:39432 "EHLO TX2EHSOBE001.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754335Ab1DDKlM (ORCPT ); Mon, 4 Apr 2011 06:41:12 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Hi, here is the next version of this patch-set. The changes to the previous post are limited to the cosmetic changes mentioned by Avi. The full function names are used now in the opcode table so that the #defines could be removed and the link between the opcode and the function for permission checking is now more clear. Regards, Joerg Diffstat: arch/x86/include/asm/kvm_emulate.h | 90 ++++++++ arch/x86/include/asm/kvm_host.h | 22 ++ arch/x86/kvm/emulate.c | 411 ++++++++++++++++++++++++++++++------ arch/x86/kvm/svm.c | 264 +++++++++++++++++++----- arch/x86/kvm/vmx.c | 9 + arch/x86/kvm/x86.c | 25 +-- 6 files changed, 695 insertions(+), 126 deletions(-) Shortlog: Avi Kivity (2): KVM: x86 emulator: add framework for instruction intercepts KVM: x86 emulator: add SVM intercepts Joerg Roedel (13): KVM: x86 emulator: Don't write-back cpu-state on X86EMUL_INTERCEPTED KVM: x86 emulator: Add check_perm callback KVM: x86 emulator: Add flag to check for protected mode instructions KVM: x86: Add x86 callback for intercept check KVM: SVM: Add intercept check for emulated cr accesses KVM: SVM: Add intercept check for accessing dr registers KVM: SVM: Add intercept checks for descriptor table accesses KVM: SVM: Add intercept checks for SVM instructions KVM: SVM: Add intercept checks for remaining group7 instructions KVM: SVM: Add intercept checks for remaining twobyte instructions KVM: SVM: Add intercept checks for one-byte instructions KVM: SVM: Add checks for IO instructions KVM: SVM: Remove nested sel_cr0_write handling code