]> xenbits.xensource.com Git - xen.git/commit
x86/guest: Introduce {get,set}_reg() infrastructure
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 17 Jan 2022 12:28:39 +0000 (12:28 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 20 Jan 2022 16:32:11 +0000 (16:32 +0000)
commit88d3ff7ab15da277a85b39735797293fb541c718
tree05bbac97ccbf2458e5c7479cb5cc4cdd0a3c5c53
parent4e1df69cc9f51b2e017af1da3ed5b45917642115
x86/guest: Introduce {get,set}_reg() infrastructure

Various registers have per-guest-type or per-vendor locations or access
requirements.  To support their use from common code, provide accessors which
allow for per-guest-type behaviour.

For now, just infrastructure handling default cases and expectations.
Subsequent patches will start handling registers using this infrastructure.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/include/asm/hvm/hvm.h
xen/arch/x86/include/asm/pv/domain.h
xen/arch/x86/pv/emulate.c