x86: properly use map_domain_page() in nested HVM code
authorJan Beulich <jbeulich@suse.com>
Wed, 23 Jan 2013 13:12:54 +0000 (14:12 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 23 Jan 2013 13:12:54 +0000 (14:12 +0100)
commitbcf557675d858e3b2e92788f5424ed4bfdac413d
treefacf1e523888c80e963541a203cc890160ef7adc
parentbad20150553601964143dff43d932accceba3e5e
x86: properly use map_domain_page() in nested HVM code

This eliminates a couple of incorrect/inconsistent uses of
map_domain_page() from VT-x code.

Note that this does _not_ add error handling where none was present
before, even though I think NULL returns from any of the mapping
operations touched here need to properly be handled. I just don't know
this code well enough to figure out what the right action in each case
would be.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/nestedhvm.c
xen/arch/x86/hvm/svm/nestedsvm.c
xen/arch/x86/hvm/vmx/vvmx.c
xen/include/asm-x86/hvm/hvm.h