nested SVM: adjust guest handling of structure mappings
authorJan Beulich <jbeulich@suse.com>
Tue, 12 Nov 2013 10:51:15 +0000 (11:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Nov 2013 10:51:15 +0000 (11:51 +0100)
commitb1e87805bf37b446dade93a7eb922bb7d1269756
tree0a4d1b1049621c7813a0daeb80f65bb113c83fc1
parent3227f77f380bdc4c0a309547629cfa6fc10e3e10
nested SVM: adjust guest handling of structure mappings

For one, nestedsvm_vmcb_map() error checking must not consist of using
assertions: Global (permanent) mappings can fail, and hence failure
needs to be dealt with properly. And non-global (transient) mappings
can't fail anyway.

And then the I/O port access bitmap handling was broken: It checked
only to first of the accessed ports rather than each of them.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Christoph Egger <chegger@amazon.de>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
xen/arch/x86/hvm/svm/nestedsvm.c