]> xenbits.xensource.com Git - xen.git/commit
x86/altp2m: Add hypercall to set a range of sve bits
authorAlexandru Stefan ISAILA <aisaila@bitdefender.com>
Fri, 17 Jan 2020 13:31:30 +0000 (13:31 +0000)
committerGeorge Dunlap <george.dunlap@citrix.com>
Thu, 23 Jan 2020 14:24:55 +0000 (14:24 +0000)
commitea22bcd030da771be18821bf4a898ed7a314eb83
tree0b135f0d75fcf9d71bc0f32f642c2d10533eb67b
parent5160dbd512523d865f7271af23636aa3f3536186
x86/altp2m: Add hypercall to set a range of sve bits

By default the sve bits are not set.
This patch adds a new hypercall, xc_altp2m_set_supress_ve_multi(),
to set a range of sve bits.
The core function, p2m_set_suppress_ve_multi(), does not break in case
of a error and it is doing a best effort for setting the bits in the
given range. A check for continuation is made in order to have
preemption on large ranges.
The gfn of the first error is stored in
xen_hvm_altp2m_suppress_ve_multi.first_error_gfn and the error code is
stored in xen_hvm_altp2m_suppress_ve_multi.first_error.
If no error occurred the values will be 0.

Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Petre Pircalabu <ppircalabu@bitdefender.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
tools/libxc/include/xenctrl.h
tools/libxc/xc_altp2m.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm/p2m.c
xen/include/public/hvm/hvm_op.h
xen/include/xen/mem_access.h