KVM: SVM: Add VMLOAD and VMSAVE handlers
commit5542675baa7e62ca4d18278c8758b6a4ec410639
authorAlexander Graf <agraf@suse.de>
Tue, 25 Nov 2008 19:17:06 +0000 (25 20:17 +0100)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:02:47 +0000 (24 11:02 +0200)
treeca7b8a45f32701ebeafd1f982f39934efa178fdf
parentb286d5d8b0836e76832dafcc5a18b0e8e5a3bc5e
KVM: SVM: Add VMLOAD and VMSAVE handlers

This implements the VMLOAD and VMSAVE instructions, that usually surround
the VMRUN instructions. Both instructions load / restore the same elements,
so we only need to implement them once.

v2 fixes CPL checking and replaces memcpy by assignments
v3 makes use of the new permission checking

Acked-by: Joerg Roedel <joro@8bytes.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c