]> xenbits.xensource.com Git - xen.git/commit
x86/vmx: Introduce vmread()
authorDenis Mukhin <dmukhin@ford.com>
Sat, 26 Apr 2025 07:27:29 +0000 (07:27 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 28 Apr 2025 20:01:20 +0000 (21:01 +0100)
commit881e5993dff7d8f372efeed7e5a9f255207805ed
tree594fb565913cbdd3f22909d6ecf61930b9f18408
parenta88b99300aedea103884b4ef8c66a5a94206feb5
x86/vmx: Introduce vmread()

The current implementation of __vmread() is void and returns the result via
pointer argument which leads to excess code in some places.

Introduce a new vmread() function, and implement __vmread() in terms of it.

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/include/asm/hvm/vmx/vmx.h