public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/15] KVM: Make the instruction emulator aware of Nested Virtualization v4
@ 2011-04-01 14:10 Joerg Roedel
  2011-04-01 14:10 ` [PATCH 01/15] KVM: x86 emulator: add framework for instruction intercepts Joerg Roedel
                   ` (15 more replies)
  0 siblings, 16 replies; 19+ messages in thread
From: Joerg Roedel @ 2011-04-01 14:10 UTC (permalink / raw)
  To: Avi Kivity, Marcelo Tosatti; +Cc: kvm

Hi,

this is version 4 of this patch-set. The main change to the previous
version is that now the intruction permission checks for interceptable
instructions are seperated to make the checks before the actual
intercept condition is checked.
For this I added the check_perm call-back to the opcode structure and
populated it where necessary.
One check was put into a new flag: 'Prot'. This is used for all
instructions that are only recognized in protected mode.
As usual, any feedback is appreciated.

Regards,
	Joerg

Diffstat:

 arch/x86/include/asm/kvm_emulate.h |   90 ++++++++
 arch/x86/include/asm/kvm_host.h    |   22 ++
 arch/x86/kvm/emulate.c             |  423 ++++++++++++++++++++++++++++++-----
 arch/x86/kvm/svm.c                 |  264 ++++++++++++++++++-----
 arch/x86/kvm/vmx.c                 |    9 +
 arch/x86/kvm/x86.c                 |   25 +-
 6 files changed, 707 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



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2011-04-04 10:23 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-01 14:10 [PATCH 0/15] KVM: Make the instruction emulator aware of Nested Virtualization v4 Joerg Roedel
2011-04-01 14:10 ` [PATCH 01/15] KVM: x86 emulator: add framework for instruction intercepts Joerg Roedel
2011-04-01 14:10 ` [PATCH 02/15] KVM: x86 emulator: add SVM intercepts Joerg Roedel
2011-04-01 14:10 ` [PATCH 03/15] KVM: x86 emulator: Don't write-back cpu-state on X86EMUL_INTERCEPTED Joerg Roedel
2011-04-01 14:10 ` [PATCH 04/15] KVM: x86 emulator: Add check_perm callback Joerg Roedel
2011-04-03 12:35   ` Avi Kivity
2011-04-04 10:23     ` Roedel, Joerg
2011-04-01 14:10 ` [PATCH 05/15] KVM: x86 emulator: Add flag to check for protected mode instructions Joerg Roedel
2011-04-01 14:10 ` [PATCH 06/15] KVM: x86: Add x86 callback for intercept check Joerg Roedel
2011-04-01 14:10 ` [PATCH 07/15] KVM: SVM: Add intercept check for emulated cr accesses Joerg Roedel
2011-04-01 14:10 ` [PATCH 08/15] KVM: SVM: Add intercept check for accessing dr registers Joerg Roedel
2011-04-01 14:10 ` [PATCH 09/15] KVM: SVM: Add intercept checks for descriptor table accesses Joerg Roedel
2011-04-01 14:10 ` [PATCH 10/15] KVM: SVM: Add intercept checks for SVM instructions Joerg Roedel
2011-04-01 14:10 ` [PATCH 11/15] KVM: SVM: Add intercept checks for remaining group7 instructions Joerg Roedel
2011-04-01 14:10 ` [PATCH 12/15] KVM: SVM: Add intercept checks for remaining twobyte instructions Joerg Roedel
2011-04-01 14:10 ` [PATCH 13/15] KVM: SVM: Add intercept checks for one-byte instructions Joerg Roedel
2011-04-01 14:10 ` [PATCH 14/15] KVM: SVM: Add checks for IO instructions Joerg Roedel
2011-04-01 14:10 ` [PATCH 15/15] KVM: SVM: Remove nested sel_cr0_write handling code Joerg Roedel
2011-04-03 12:42 ` [PATCH 0/15] KVM: Make the instruction emulator aware of Nested Virtualization v4 Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox