diff options
author | Jan Beulich <jbeulich@suse.com> | 2013-01-23 14:12:54 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-01-23 14:12:54 +0100 |
commit | bcf557675d858e3b2e92788f5424ed4bfdac413d (patch) | |
tree | facf1e523888c80e963541a203cc890160ef7adc /xen/include/asm-x86/hvm | |
parent | bad20150553601964143dff43d932accceba3e5e (diff) | |
download | xen-bcf557675d858e3b2e92788f5424ed4bfdac413d.tar.gz xen-bcf557675d858e3b2e92788f5424ed4bfdac413d.tar.bz2 xen-bcf557675d858e3b2e92788f5424ed4bfdac413d.zip |
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>
Diffstat (limited to 'xen/include/asm-x86/hvm')
-rw-r--r-- | xen/include/asm-x86/hvm/hvm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/include/asm-x86/hvm/hvm.h b/xen/include/asm-x86/hvm/hvm.h index 76e9cc8fbe..35a4b3eac2 100644 --- a/xen/include/asm-x86/hvm/hvm.h +++ b/xen/include/asm-x86/hvm/hvm.h @@ -423,9 +423,9 @@ int hvm_virtual_to_linear_addr( unsigned int addr_size, unsigned long *linear_addr); -void *hvm_map_guest_frame_rw(unsigned long gfn); -void *hvm_map_guest_frame_ro(unsigned long gfn); -void hvm_unmap_guest_frame(void *p); +void *hvm_map_guest_frame_rw(unsigned long gfn, bool_t permanent); +void *hvm_map_guest_frame_ro(unsigned long gfn, bool_t permanent); +void hvm_unmap_guest_frame(void *p, bool_t permanent); static inline void hvm_set_info_guest(struct vcpu *v) { |