]> xenbits.xensource.com Git - xen.git/commit
x86/svm: Fix svm_nextrip_insn_length() when crossing the virtual boundary to 0
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 31 Oct 2016 14:07:54 +0000 (14:07 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 21 Nov 2016 14:01:45 +0000 (14:01 +0000)
commit0745f665a575bdb6724f6ec1ab767cd71ba8c253
tree1b83dffe4ac03113394984b9059f95ae5ca04e88
parent58bd0c7985890e0292212f94a56235228a3445c3
x86/svm: Fix svm_nextrip_insn_length() when crossing the virtual boundary to 0

vmcb->nextrip can legitimately be less than vmcb->rip when execution wraps
back around to 0.  Instead, complain if the reported length is greater than 15
and use x86_decode_insn() as a fallback.

While making changes here, fix two whitespace issues with the case labels.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/svm/emulate.c