linux/include/xen/interface/hvm/hvm_op.h

/* SPDX-License-Identifier: MIT */

#ifndef __XEN_PUBLIC_HVM_HVM_OP_H__
#define __XEN_PUBLIC_HVM_HVM_OP_H__

#include <xen/interface/xen.h>

/* Get/set subcommands: the second argument of the hypercall is a
 * pointer to a xen_hvm_param struct. */
#define HVMOP_set_param
#define HVMOP_get_param
struct xen_hvm_param {};
DEFINE_GUEST_HANDLE_STRUCT();

/* Hint from PV drivers for pagetable destruction. */
#define HVMOP_pagetable_dying
struct xen_hvm_pagetable_dying {};
xen_hvm_pagetable_dying_t;
DEFINE_GUEST_HANDLE_STRUCT();
 
enum hvmmem_type_t {};

#define HVMOP_get_mem_type
/* Return hvmmem_type_t for the specified pfn. */
struct xen_hvm_get_mem_type {};
DEFINE_GUEST_HANDLE_STRUCT();

#if defined(__i386__) || defined(__x86_64__)

/*
 * HVMOP_set_evtchn_upcall_vector: Set a <vector> that should be used for event
 *                                 channel upcalls on the specified <vcpu>. If set,
 *                                 this vector will be used in preference to the
 *                                 domain global callback via (see
 *                                 HVM_PARAM_CALLBACK_IRQ).
 */
#define HVMOP_set_evtchn_upcall_vector
struct xen_hvm_evtchn_upcall_vector {};
xen_hvm_evtchn_upcall_vector_t;
DEFINE_GUEST_HANDLE_STRUCT();

#endif /* defined(__i386__) || defined(__x86_64__) */

#endif /* __XEN_PUBLIC_HVM_HVM_OP_H__ */