|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
[Xen-ia64-devel] [PATCH 2/5] Add XEN_DOMCTL_set_opt_feature
This one will also be sent to xen-devel if we decided to use this
method. HYPERVISOR_opt_feature only sets features for the current
domain, so it seems we need a domctl version to make use of it from
domain builder code. I was uncomfortable adding arch specific flags to
XEN_DOMCTL_arch_setup, so took this approach. I think it provides more
flexibility in specifying opt_features in the builder code, as seen in
the last patch. NB - I'll also include header updates for Linux files
when I send this upstream.
Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
---
diff -r 98defc4f3bf9 xen/include/public/domctl.h
--- a/xen/include/public/domctl.h Mon Nov 26 10:07:30 2007 -0700
+++ b/xen/include/public/domctl.h Tue Nov 27 16:29:13 2007 -0700
@@ -539,6 +539,17 @@ typedef struct xen_domctl_ext_vcpucontex
typedef struct xen_domctl_ext_vcpucontext xen_domctl_ext_vcpucontext_t;
DEFINE_XEN_GUEST_HANDLE(xen_domctl_ext_vcpucontext_t);
+/*
+ * Set optimizaton features for a domain
+ */
+#define XEN_DOMCTL_set_opt_feature 44
+struct xen_domctl_set_opt_feature {
+#ifdef __ia64__
+ struct xen_ia64_opt_feature optf;
+#endif
+};
+typedef struct xen_domctl_set_opt_feature xen_domctl_set_opt_feature_t;
+DEFINE_XEN_GUEST_HANDLE(xen_domctl_set_opt_feature_t);
struct xen_domctl {
uint32_t cmd;
@@ -575,6 +586,7 @@ struct xen_domctl {
struct xen_domctl_ioport_mapping ioport_mapping;
struct xen_domctl_pin_mem_cacheattr pin_mem_cacheattr;
struct xen_domctl_ext_vcpucontext ext_vcpucontext;
+ struct xen_domctl_set_opt_feature set_opt_feature;
uint8_t pad[128];
} u;
};
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-ia64-devel] [PATCH 2/5] Add XEN_DOMCTL_set_opt_feature,
Alex Williamson <=
|
|
|
|
|