Path: blob/master/include/xen/interface/hvm/hvm_op.h
10819 views
/*1* Permission is hereby granted, free of charge, to any person obtaining a copy2* of this software and associated documentation files (the "Software"), to3* deal in the Software without restriction, including without limitation the4* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or5* sell copies of the Software, and to permit persons to whom the Software is6* furnished to do so, subject to the following conditions:7*8* The above copyright notice and this permission notice shall be included in9* all copies or substantial portions of the Software.10*11* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR12* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,13* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE14* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER15* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING16* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER17* DEALINGS IN THE SOFTWARE.18*/1920#ifndef __XEN_PUBLIC_HVM_HVM_OP_H__21#define __XEN_PUBLIC_HVM_HVM_OP_H__2223/* Get/set subcommands: the second argument of the hypercall is a24* pointer to a xen_hvm_param struct. */25#define HVMOP_set_param 026#define HVMOP_get_param 127struct xen_hvm_param {28domid_t domid; /* IN */29uint32_t index; /* IN */30uint64_t value; /* IN/OUT */31};32DEFINE_GUEST_HANDLE_STRUCT(xen_hvm_param);3334/* Hint from PV drivers for pagetable destruction. */35#define HVMOP_pagetable_dying 936struct xen_hvm_pagetable_dying {37/* Domain with a pagetable about to be destroyed. */38domid_t domid;39/* guest physical address of the toplevel pagetable dying */40aligned_u64 gpa;41};42typedef struct xen_hvm_pagetable_dying xen_hvm_pagetable_dying_t;43DEFINE_GUEST_HANDLE_STRUCT(xen_hvm_pagetable_dying_t);4445#endif /* __XEN_PUBLIC_HVM_HVM_OP_H__ */464748