x86/HVM: linear address must be canonical for the whole accessed range
authorJan Beulich <jbeulich@suse.com>
Mon, 23 Sep 2013 07:53:55 +0000 (09:53 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 23 Sep 2013 07:53:55 +0000 (09:53 +0200)
commit7f12732670b31b2fea899a4160d455574658474f
tree85f686300ede287f47102cfb8c114ea921e0fec1
parenta2e2df452e9cc80844c5de9301862a6285bd30c1
x86/HVM: linear address must be canonical for the whole accessed range

... rather than just for the first byte.

While at it, also
- make the real mode case at least dpo a wrap around check
- drop the mis-named "gpf" label (we're not generating faults here)
  and use in-place returns instead

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/hvm.c