KVM: SVM: cache nested intercepts
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 7 Aug 2009 09:49:34 +0000 (11:49 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:33:24 +0000 (08:33 +0300)
commitaad42c641cfcda4f87abc4f6588329b9b3cc3364
tree110c2cfd3cc18dff27f4fb01bb5ffab61661ada0
parente6aa9abd7381557c67be6a9e7240eb132ca00d66
KVM: SVM: cache nested intercepts

When the nested intercepts are cached we don't need to call
get_user_pages and/or map the nested vmcb on every nested #vmexit to
check who will handle the intercept.
Further this patch aligns the emulated svm behavior better to real
hardware.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c