mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 14:36:41 +07:00
5915100106
When a pagetable is about to be destroyed, we notify Xen so that the hypervisor can clear the related shadow pagetable. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
47 lines
1.9 KiB
C
47 lines
1.9 KiB
C
/*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
* of this software and associated documentation files (the "Software"), to
|
|
* deal in the Software without restriction, including without limitation the
|
|
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
* sell copies of the Software, and to permit persons to whom the Software is
|
|
* furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
* DEALINGS IN THE SOFTWARE.
|
|
*/
|
|
|
|
#ifndef __XEN_PUBLIC_HVM_HVM_OP_H__
|
|
#define __XEN_PUBLIC_HVM_HVM_OP_H__
|
|
|
|
/* Get/set subcommands: the second argument of the hypercall is a
|
|
* pointer to a xen_hvm_param struct. */
|
|
#define HVMOP_set_param 0
|
|
#define HVMOP_get_param 1
|
|
struct xen_hvm_param {
|
|
domid_t domid; /* IN */
|
|
uint32_t index; /* IN */
|
|
uint64_t value; /* IN/OUT */
|
|
};
|
|
DEFINE_GUEST_HANDLE_STRUCT(xen_hvm_param);
|
|
|
|
/* Hint from PV drivers for pagetable destruction. */
|
|
#define HVMOP_pagetable_dying 9
|
|
struct xen_hvm_pagetable_dying {
|
|
/* Domain with a pagetable about to be destroyed. */
|
|
domid_t domid;
|
|
/* guest physical address of the toplevel pagetable dying */
|
|
aligned_u64 gpa;
|
|
};
|
|
typedef struct xen_hvm_pagetable_dying xen_hvm_pagetable_dying_t;
|
|
DEFINE_GUEST_HANDLE_STRUCT(xen_hvm_pagetable_dying_t);
|
|
|
|
#endif /* __XEN_PUBLIC_HVM_HVM_OP_H__ */
|