diff options
Diffstat (limited to 'include/xen/interface')
-rw-r--r-- | include/xen/interface/features.h | 3 | ||||
-rw-r--r-- | include/xen/interface/grant_table.h | 19 |
2 files changed, 19 insertions, 3 deletions
diff --git a/include/xen/interface/features.h b/include/xen/interface/features.h index 14334d0161d5..131a6ccdba25 100644 --- a/include/xen/interface/features.h +++ b/include/xen/interface/features.h | |||
@@ -53,9 +53,6 @@ | |||
53 | /* operation as Dom0 is supported */ | 53 | /* operation as Dom0 is supported */ |
54 | #define XENFEAT_dom0 11 | 54 | #define XENFEAT_dom0 11 |
55 | 55 | ||
56 | /* Xen also maps grant references at pfn = mfn */ | ||
57 | #define XENFEAT_grant_map_identity 12 | ||
58 | |||
59 | #define XENFEAT_NR_SUBMAPS 1 | 56 | #define XENFEAT_NR_SUBMAPS 1 |
60 | 57 | ||
61 | #endif /* __XEN_PUBLIC_FEATURES_H__ */ | 58 | #endif /* __XEN_PUBLIC_FEATURES_H__ */ |
diff --git a/include/xen/interface/grant_table.h b/include/xen/interface/grant_table.h index e40fae9bf11a..bcce56439d64 100644 --- a/include/xen/interface/grant_table.h +++ b/include/xen/interface/grant_table.h | |||
@@ -479,6 +479,25 @@ struct gnttab_get_version { | |||
479 | DEFINE_GUEST_HANDLE_STRUCT(gnttab_get_version); | 479 | DEFINE_GUEST_HANDLE_STRUCT(gnttab_get_version); |
480 | 480 | ||
481 | /* | 481 | /* |
482 | * Issue one or more cache maintenance operations on a portion of a | ||
483 | * page granted to the calling domain by a foreign domain. | ||
484 | */ | ||
485 | #define GNTTABOP_cache_flush 12 | ||
486 | struct gnttab_cache_flush { | ||
487 | union { | ||
488 | uint64_t dev_bus_addr; | ||
489 | grant_ref_t ref; | ||
490 | } a; | ||
491 | uint16_t offset; /* offset from start of grant */ | ||
492 | uint16_t length; /* size within the grant */ | ||
493 | #define GNTTAB_CACHE_CLEAN (1<<0) | ||
494 | #define GNTTAB_CACHE_INVAL (1<<1) | ||
495 | #define GNTTAB_CACHE_SOURCE_GREF (1<<31) | ||
496 | uint32_t op; | ||
497 | }; | ||
498 | DEFINE_GUEST_HANDLE_STRUCT(gnttab_cache_flush); | ||
499 | |||
500 | /* | ||
482 | * Bitfield values for update_pin_status.flags. | 501 | * Bitfield values for update_pin_status.flags. |
483 | */ | 502 | */ |
484 | /* Map the grant entry for access by I/O devices. */ | 503 | /* Map the grant entry for access by I/O devices. */ |