Skip to content

Commit

Permalink
public/memory: Shift XENMEM_p2m_lookup hypercall number
Browse files Browse the repository at this point in the history
In order to not cross with nearest future changes in the upstream XEN interface,
shift our specific hypercall number towards the end of XENMEM hypercall numbers
range.

Signed-off-by: Andrii Anisov <[email protected]>
  • Loading branch information
Andrii Anisov authored and aanisov committed Feb 20, 2019
1 parent 3e1dd0c commit 7b337a7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions xen/include/public/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -651,10 +651,11 @@ typedef struct xen_vnuma_topology_info xen_vnuma_topology_info_t;
DEFINE_XEN_GUEST_HANDLE(xen_vnuma_topology_info_t);

/*
* XENMEM_p2m_lookup used by guest to translate array of IPAs to
* MAs.
* XENMEM_p2m_lookup used by guest to translate array of IPAs to MAs. The number
* is taken as MEMOP_CMD_MASK-1 at introduction time, in order to not cross
* with nearest future changes in XEN interface.
*/
#define XENMEM_p2m_lookup 28
#define XENMEM_p2m_lookup 62

struct xen_p2m_lookup {
/* IN */
Expand All @@ -668,7 +669,7 @@ struct xen_p2m_lookup {
typedef struct xen_p2m_lookup xen_p2m_lookup_t;
DEFINE_XEN_GUEST_HANDLE(xen_p2m_lookup_t);

/* Next available subop number is 29 */
/* Next available subop number is 28 */

#endif /* __XEN_PUBLIC_MEMORY_H__ */

Expand Down

0 comments on commit 7b337a7

Please sign in to comment.