direct-io.hg

view xen/include/public/dom0_ops.h @ 10450:0991ed8e4ae5

Add DOM0_DOMAIN_SETUP hypercall.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
[I fiddled with the flags prefix after all. :-)
Signed-off-by: Keir Fraser <keir@xensource.com>]
author kaf24@firebug.cl.cam.ac.uk
date Mon Jun 19 16:39:27 2006 +0100 (2006-06-19)
parents c191c649cdb3
children 12aaf4a2486b
line source
1 /******************************************************************************
2 * dom0_ops.h
3 *
4 * Process command requests from domain-0 guest OS.
5 *
6 * Copyright (c) 2002-2003, B Dragovic
7 * Copyright (c) 2002-2004, K Fraser
8 */
11 #ifndef __XEN_PUBLIC_DOM0_OPS_H__
12 #define __XEN_PUBLIC_DOM0_OPS_H__
14 #include "xen.h"
15 #include "sched_ctl.h"
17 /*
18 * Make sure you increment the interface version whenever you modify this file!
19 * This makes sure that old versions of dom0 tools will stop working in a
20 * well-defined way (rather than crashing the machine, for instance).
21 */
22 #define DOM0_INTERFACE_VERSION 0x03000001
24 /************************************************************************/
26 #define DOM0_GETMEMLIST 2
27 struct dom0_getmemlist {
28 /* IN variables. */
29 domid_t domain;
30 uint64_t max_pfns;
31 XEN_GUEST_HANDLE(xen_pfn_t) buffer;
32 /* OUT variables. */
33 uint64_t num_pfns;
34 };
35 typedef struct dom0_getmemlist dom0_getmemlist_t;
36 DEFINE_XEN_GUEST_HANDLE(dom0_getmemlist_t);
38 #define DOM0_SCHEDCTL 6
39 /* struct sched_ctl_cmd is from sched-ctl.h */
40 typedef struct sched_ctl_cmd dom0_schedctl_t;
41 DEFINE_XEN_GUEST_HANDLE(dom0_schedctl_t);
43 #define DOM0_ADJUSTDOM 7
44 /* struct sched_adjdom_cmd is from sched-ctl.h */
45 typedef struct sched_adjdom_cmd dom0_adjustdom_t;
46 DEFINE_XEN_GUEST_HANDLE(dom0_adjustdom_t);
48 #define DOM0_CREATEDOMAIN 8
49 struct dom0_createdomain {
50 /* IN parameters */
51 uint32_t ssidref;
52 xen_domain_handle_t handle;
53 /* IN/OUT parameters. */
54 /* Identifier for new domain (auto-allocate if zero is specified). */
55 domid_t domain;
56 };
57 typedef struct dom0_createdomain dom0_createdomain_t;
58 DEFINE_XEN_GUEST_HANDLE(dom0_createdomain_t);
60 #define DOM0_DESTROYDOMAIN 9
61 struct dom0_destroydomain {
62 /* IN variables. */
63 domid_t domain;
64 };
65 typedef struct dom0_destroydomain dom0_destroydomain_t;
66 DEFINE_XEN_GUEST_HANDLE(dom0_destroydomain_t);
68 #define DOM0_PAUSEDOMAIN 10
69 struct dom0_pausedomain {
70 /* IN parameters. */
71 domid_t domain;
72 };
73 typedef struct dom0_pausedomain dom0_pausedomain_t;
74 DEFINE_XEN_GUEST_HANDLE(dom0_pausedomain_t);
76 #define DOM0_UNPAUSEDOMAIN 11
77 struct dom0_unpausedomain {
78 /* IN parameters. */
79 domid_t domain;
80 };
81 typedef struct dom0_unpausedomain dom0_unpausedomain_t;
82 DEFINE_XEN_GUEST_HANDLE(dom0_unpausedomain_t);
84 #define DOM0_GETDOMAININFO 12
85 struct dom0_getdomaininfo {
86 /* IN variables. */
87 domid_t domain; /* NB. IN/OUT variable. */
88 /* OUT variables. */
89 #define DOMFLAGS_DYING (1<<0) /* Domain is scheduled to die. */
90 #define DOMFLAGS_SHUTDOWN (1<<2) /* The guest OS has shut down. */
91 #define DOMFLAGS_PAUSED (1<<3) /* Currently paused by control software. */
92 #define DOMFLAGS_BLOCKED (1<<4) /* Currently blocked pending an event. */
93 #define DOMFLAGS_RUNNING (1<<5) /* Domain is currently running. */
94 #define DOMFLAGS_CPUMASK 255 /* CPU to which this domain is bound. */
95 #define DOMFLAGS_CPUSHIFT 8
96 #define DOMFLAGS_SHUTDOWNMASK 255 /* DOMFLAGS_SHUTDOWN guest-supplied code. */
97 #define DOMFLAGS_SHUTDOWNSHIFT 16
98 uint32_t flags;
99 uint64_t tot_pages;
100 uint64_t max_pages;
101 xen_pfn_t shared_info_frame; /* MFN of shared_info struct */
102 uint64_t cpu_time;
103 uint32_t nr_online_vcpus; /* Number of VCPUs currently online. */
104 uint32_t max_vcpu_id; /* Maximum VCPUID in use by this domain. */
105 uint32_t ssidref;
106 xen_domain_handle_t handle;
107 };
108 typedef struct dom0_getdomaininfo dom0_getdomaininfo_t;
109 DEFINE_XEN_GUEST_HANDLE(dom0_getdomaininfo_t);
111 #define DOM0_SETVCPUCONTEXT 13
112 struct dom0_setvcpucontext {
113 /* IN variables. */
114 domid_t domain;
115 uint32_t vcpu;
116 /* IN/OUT parameters */
117 XEN_GUEST_HANDLE(vcpu_guest_context_t) ctxt;
118 };
119 typedef struct dom0_setvcpucontext dom0_setvcpucontext_t;
120 DEFINE_XEN_GUEST_HANDLE(dom0_setvcpucontext_t);
122 #define DOM0_MSR 15
123 struct dom0_msr {
124 /* IN variables. */
125 uint32_t write;
126 cpumap_t cpu_mask;
127 uint32_t msr;
128 uint32_t in1;
129 uint32_t in2;
130 /* OUT variables. */
131 uint32_t out1;
132 uint32_t out2;
133 };
134 typedef struct dom0_msr dom0_msr_t;
135 DEFINE_XEN_GUEST_HANDLE(dom0_msr_t);
137 /*
138 * Set clock such that it would read <secs,nsecs> after 00:00:00 UTC,
139 * 1 January, 1970 if the current system time was <system_time>.
140 */
141 #define DOM0_SETTIME 17
142 struct dom0_settime {
143 /* IN variables. */
144 uint32_t secs;
145 uint32_t nsecs;
146 uint64_t system_time;
147 };
148 typedef struct dom0_settime dom0_settime_t;
149 DEFINE_XEN_GUEST_HANDLE(dom0_settime_t);
151 #define DOM0_GETPAGEFRAMEINFO 18
152 #define LTAB_SHIFT 28
153 #define NOTAB 0 /* normal page */
154 #define L1TAB (1<<LTAB_SHIFT)
155 #define L2TAB (2<<LTAB_SHIFT)
156 #define L3TAB (3<<LTAB_SHIFT)
157 #define L4TAB (4<<LTAB_SHIFT)
158 #define LPINTAB (1<<31)
159 #define XTAB (0xf<<LTAB_SHIFT) /* invalid page */
160 #define LTAB_MASK XTAB
161 #define LTABTYPE_MASK (0x7<<LTAB_SHIFT)
163 struct dom0_getpageframeinfo {
164 /* IN variables. */
165 xen_pfn_t mfn; /* Machine page frame number to query. */
166 domid_t domain; /* To which domain does the frame belong? */
167 /* OUT variables. */
168 /* Is the page PINNED to a type? */
169 uint32_t type; /* see above type defs */
170 };
171 typedef struct dom0_getpageframeinfo dom0_getpageframeinfo_t;
172 DEFINE_XEN_GUEST_HANDLE(dom0_getpageframeinfo_t);
174 /*
175 * Read console content from Xen buffer ring.
176 */
177 #define DOM0_READCONSOLE 19
178 struct dom0_readconsole {
179 /* IN variables. */
180 uint32_t clear; /* Non-zero -> clear after reading. */
181 /* IN/OUT variables. */
182 XEN_GUEST_HANDLE(char) buffer; /* In: Buffer start; Out: Used buffer start */
183 uint32_t count; /* In: Buffer size; Out: Used buffer size */
184 };
185 typedef struct dom0_readconsole dom0_readconsole_t;
186 DEFINE_XEN_GUEST_HANDLE(dom0_readconsole_t);
188 /*
189 * Set which physical cpus a vcpu can execute on.
190 */
191 #define DOM0_SETVCPUAFFINITY 20
192 struct dom0_setvcpuaffinity {
193 /* IN variables. */
194 domid_t domain;
195 uint32_t vcpu;
196 cpumap_t cpumap;
197 };
198 typedef struct dom0_setvcpuaffinity dom0_setvcpuaffinity_t;
199 DEFINE_XEN_GUEST_HANDLE(dom0_setvcpuaffinity_t);
201 /* Get trace buffers machine base address */
202 #define DOM0_TBUFCONTROL 21
203 struct dom0_tbufcontrol {
204 /* IN variables */
205 #define DOM0_TBUF_GET_INFO 0
206 #define DOM0_TBUF_SET_CPU_MASK 1
207 #define DOM0_TBUF_SET_EVT_MASK 2
208 #define DOM0_TBUF_SET_SIZE 3
209 #define DOM0_TBUF_ENABLE 4
210 #define DOM0_TBUF_DISABLE 5
211 uint32_t op;
212 /* IN/OUT variables */
213 cpumap_t cpu_mask;
214 uint32_t evt_mask;
215 /* OUT variables */
216 xen_pfn_t buffer_mfn;
217 uint32_t size;
218 };
219 typedef struct dom0_tbufcontrol dom0_tbufcontrol_t;
220 DEFINE_XEN_GUEST_HANDLE(dom0_tbufcontrol_t);
222 /*
223 * Get physical information about the host machine
224 */
225 #define DOM0_PHYSINFO 22
226 struct dom0_physinfo {
227 uint32_t threads_per_core;
228 uint32_t cores_per_socket;
229 uint32_t sockets_per_node;
230 uint32_t nr_nodes;
231 uint32_t cpu_khz;
232 uint64_t total_pages;
233 uint64_t free_pages;
234 uint32_t hw_cap[8];
235 };
236 typedef struct dom0_physinfo dom0_physinfo_t;
237 DEFINE_XEN_GUEST_HANDLE(dom0_physinfo_t);
239 /*
240 * Get the ID of the current scheduler.
241 */
242 #define DOM0_SCHED_ID 24
243 struct dom0_sched_id {
244 /* OUT variable */
245 uint32_t sched_id;
246 };
247 typedef struct dom0_physinfo dom0_sched_id_t;
248 DEFINE_XEN_GUEST_HANDLE(dom0_sched_id_t);
250 /*
251 * Control shadow pagetables operation
252 */
253 #define DOM0_SHADOW_CONTROL 25
255 #define DOM0_SHADOW_CONTROL_OP_OFF 0
256 #define DOM0_SHADOW_CONTROL_OP_ENABLE_TEST 1
257 #define DOM0_SHADOW_CONTROL_OP_ENABLE_LOGDIRTY 2
258 #define DOM0_SHADOW_CONTROL_OP_ENABLE_TRANSLATE 3
260 #define DOM0_SHADOW_CONTROL_OP_FLUSH 10 /* table ops */
261 #define DOM0_SHADOW_CONTROL_OP_CLEAN 11
262 #define DOM0_SHADOW_CONTROL_OP_PEEK 12
264 struct dom0_shadow_control_stats {
265 uint32_t fault_count;
266 uint32_t dirty_count;
267 uint32_t dirty_net_count;
268 uint32_t dirty_block_count;
269 };
270 typedef struct dom0_shadow_control_stats dom0_shadow_control_stats_t;
271 DEFINE_XEN_GUEST_HANDLE(dom0_shadow_control_stats_t);
273 struct dom0_shadow_control {
274 /* IN variables. */
275 domid_t domain;
276 uint32_t op;
277 XEN_GUEST_HANDLE(ulong) dirty_bitmap;
278 /* IN/OUT variables. */
279 uint64_t pages; /* size of buffer, updated with actual size */
280 /* OUT variables. */
281 struct dom0_shadow_control_stats stats;
282 };
283 typedef struct dom0_shadow_control dom0_shadow_control_t;
284 DEFINE_XEN_GUEST_HANDLE(dom0_shadow_control_t);
286 #define DOM0_SETDOMAINMAXMEM 28
287 struct dom0_setdomainmaxmem {
288 /* IN variables. */
289 domid_t domain;
290 uint64_t max_memkb;
291 };
292 typedef struct dom0_setdomainmaxmem dom0_setdomainmaxmem_t;
293 DEFINE_XEN_GUEST_HANDLE(dom0_setdomainmaxmem_t);
295 #define DOM0_GETPAGEFRAMEINFO2 29 /* batched interface */
296 struct dom0_getpageframeinfo2 {
297 /* IN variables. */
298 domid_t domain;
299 uint64_t num;
300 /* IN/OUT variables. */
301 XEN_GUEST_HANDLE(ulong) array;
302 };
303 typedef struct dom0_getpageframeinfo2 dom0_getpageframeinfo2_t;
304 DEFINE_XEN_GUEST_HANDLE(dom0_getpageframeinfo2_t);
306 /*
307 * Request memory range (@mfn, @mfn+@nr_mfns-1) to have type @type.
308 * On x86, @type is an architecture-defined MTRR memory type.
309 * On success, returns the MTRR that was used (@reg) and a handle that can
310 * be passed to DOM0_DEL_MEMTYPE to accurately tear down the new setting.
311 * (x86-specific).
312 */
313 #define DOM0_ADD_MEMTYPE 31
314 struct dom0_add_memtype {
315 /* IN variables. */
316 xen_pfn_t mfn;
317 uint64_t nr_mfns;
318 uint32_t type;
319 /* OUT variables. */
320 uint32_t handle;
321 uint32_t reg;
322 };
323 typedef struct dom0_add_memtype dom0_add_memtype_t;
324 DEFINE_XEN_GUEST_HANDLE(dom0_add_memtype_t);
326 /*
327 * Tear down an existing memory-range type. If @handle is remembered then it
328 * should be passed in to accurately tear down the correct setting (in case
329 * of overlapping memory regions with differing types). If it is not known
330 * then @handle should be set to zero. In all cases @reg must be set.
331 * (x86-specific).
332 */
333 #define DOM0_DEL_MEMTYPE 32
334 struct dom0_del_memtype {
335 /* IN variables. */
336 uint32_t handle;
337 uint32_t reg;
338 };
339 typedef struct dom0_del_memtype dom0_del_memtype_t;
340 DEFINE_XEN_GUEST_HANDLE(dom0_del_memtype_t);
342 /* Read current type of an MTRR (x86-specific). */
343 #define DOM0_READ_MEMTYPE 33
344 struct dom0_read_memtype {
345 /* IN variables. */
346 uint32_t reg;
347 /* OUT variables. */
348 xen_pfn_t mfn;
349 uint64_t nr_mfns;
350 uint32_t type;
351 };
352 typedef struct dom0_read_memtype dom0_read_memtype_t;
353 DEFINE_XEN_GUEST_HANDLE(dom0_read_memtype_t);
355 /* Interface for controlling Xen software performance counters. */
356 #define DOM0_PERFCCONTROL 34
357 /* Sub-operations: */
358 #define DOM0_PERFCCONTROL_OP_RESET 1 /* Reset all counters to zero. */
359 #define DOM0_PERFCCONTROL_OP_QUERY 2 /* Get perfctr information. */
360 struct dom0_perfc_desc {
361 char name[80]; /* name of perf counter */
362 uint32_t nr_vals; /* number of values for this counter */
363 uint32_t vals[64]; /* array of values */
364 };
365 typedef struct dom0_perfc_desc dom0_perfc_desc_t;
366 DEFINE_XEN_GUEST_HANDLE(dom0_perfc_desc_t);
368 struct dom0_perfccontrol {
369 /* IN variables. */
370 uint32_t op; /* DOM0_PERFCCONTROL_OP_??? */
371 /* OUT variables. */
372 uint32_t nr_counters; /* number of counters */
373 XEN_GUEST_HANDLE(dom0_perfc_desc_t) desc; /* counter information (or NULL) */
374 };
375 typedef struct dom0_perfccontrol dom0_perfccontrol_t;
376 DEFINE_XEN_GUEST_HANDLE(dom0_perfccontrol_t);
378 #define DOM0_MICROCODE 35
379 struct dom0_microcode {
380 /* IN variables. */
381 XEN_GUEST_HANDLE(void) data; /* Pointer to microcode data */
382 uint32_t length; /* Length of microcode data. */
383 };
384 typedef struct dom0_microcode dom0_microcode_t;
385 DEFINE_XEN_GUEST_HANDLE(dom0_microcode_t);
387 #define DOM0_IOPORT_PERMISSION 36
388 struct dom0_ioport_permission {
389 domid_t domain; /* domain to be affected */
390 uint32_t first_port; /* first port int range */
391 uint32_t nr_ports; /* size of port range */
392 uint8_t allow_access; /* allow or deny access to range? */
393 };
394 typedef struct dom0_ioport_permission dom0_ioport_permission_t;
395 DEFINE_XEN_GUEST_HANDLE(dom0_ioport_permission_t);
397 #define DOM0_GETVCPUCONTEXT 37
398 struct dom0_getvcpucontext {
399 /* IN variables. */
400 domid_t domain; /* domain to be affected */
401 uint32_t vcpu; /* vcpu # */
402 /* OUT variables. */
403 XEN_GUEST_HANDLE(vcpu_guest_context_t) ctxt;
404 };
405 typedef struct dom0_getvcpucontext dom0_getvcpucontext_t;
406 DEFINE_XEN_GUEST_HANDLE(dom0_getvcpucontext_t);
408 #define DOM0_GETVCPUINFO 43
409 struct dom0_getvcpuinfo {
410 /* IN variables. */
411 domid_t domain; /* domain to be affected */
412 uint32_t vcpu; /* vcpu # */
413 /* OUT variables. */
414 uint8_t online; /* currently online (not hotplugged)? */
415 uint8_t blocked; /* blocked waiting for an event? */
416 uint8_t running; /* currently scheduled on its CPU? */
417 uint64_t cpu_time; /* total cpu time consumed (ns) */
418 uint32_t cpu; /* current mapping */
419 cpumap_t cpumap; /* allowable mapping */
420 };
421 typedef struct dom0_getvcpuinfo dom0_getvcpuinfo_t;
422 DEFINE_XEN_GUEST_HANDLE(dom0_getvcpuinfo_t);
424 #define DOM0_GETDOMAININFOLIST 38
425 struct dom0_getdomaininfolist {
426 /* IN variables. */
427 domid_t first_domain;
428 uint32_t max_domains;
429 XEN_GUEST_HANDLE(dom0_getdomaininfo_t) buffer;
430 /* OUT variables. */
431 uint32_t num_domains;
432 };
433 typedef struct dom0_getdomaininfolist dom0_getdomaininfolist_t;
434 DEFINE_XEN_GUEST_HANDLE(dom0_getdomaininfolist_t);
436 #define DOM0_PLATFORM_QUIRK 39
437 #define QUIRK_NOIRQBALANCING 1 /* Do not restrict IO-APIC RTE targets */
438 #define QUIRK_IOAPIC_BAD_REGSEL 2 /* IO-APIC REGSEL forgets its value */
439 #define QUIRK_IOAPIC_GOOD_REGSEL 3 /* IO-APIC REGSEL behaves properly */
440 struct dom0_platform_quirk {
441 /* IN variables. */
442 uint32_t quirk_id;
443 };
444 typedef struct dom0_platform_quirk dom0_platform_quirk_t;
445 DEFINE_XEN_GUEST_HANDLE(dom0_platform_quirk_t);
447 #define DOM0_PHYSICAL_MEMORY_MAP 40 /* Unimplemented from 3.0.3 onwards */
448 struct dom0_memory_map_entry {
449 uint64_t start, end;
450 uint32_t flags; /* reserved */
451 uint8_t is_ram;
452 };
453 typedef struct dom0_memory_map_entry dom0_memory_map_entry_t;
454 DEFINE_XEN_GUEST_HANDLE(dom0_memory_map_entry_t);
456 struct dom0_physical_memory_map {
457 /* IN variables. */
458 uint32_t max_map_entries;
459 /* OUT variables. */
460 uint32_t nr_map_entries;
461 XEN_GUEST_HANDLE(dom0_memory_map_entry_t) memory_map;
462 };
463 typedef struct dom0_physical_memory_map dom0_physical_memory_map_t;
464 DEFINE_XEN_GUEST_HANDLE(dom0_physical_memory_map_t);
466 #define DOM0_MAX_VCPUS 41
467 struct dom0_max_vcpus {
468 domid_t domain; /* domain to be affected */
469 uint32_t max; /* maximum number of vcpus */
470 };
471 typedef struct dom0_max_vcpus dom0_max_vcpus_t;
472 DEFINE_XEN_GUEST_HANDLE(dom0_max_vcpus_t);
474 #define DOM0_SETDOMAINHANDLE 44
475 struct dom0_setdomainhandle {
476 domid_t domain;
477 xen_domain_handle_t handle;
478 };
479 typedef struct dom0_setdomainhandle dom0_setdomainhandle_t;
480 DEFINE_XEN_GUEST_HANDLE(dom0_setdomainhandle_t);
482 #define DOM0_SETDEBUGGING 45
483 struct dom0_setdebugging {
484 domid_t domain;
485 uint8_t enable;
486 };
487 typedef struct dom0_setdebugging dom0_setdebugging_t;
488 DEFINE_XEN_GUEST_HANDLE(dom0_setdebugging_t);
490 #define DOM0_IRQ_PERMISSION 46
491 struct dom0_irq_permission {
492 domid_t domain; /* domain to be affected */
493 uint8_t pirq;
494 uint8_t allow_access; /* flag to specify enable/disable of IRQ access */
495 };
496 typedef struct dom0_irq_permission dom0_irq_permission_t;
497 DEFINE_XEN_GUEST_HANDLE(dom0_irq_permission_t);
499 #define DOM0_IOMEM_PERMISSION 47
500 struct dom0_iomem_permission {
501 domid_t domain; /* domain to be affected */
502 xen_pfn_t first_mfn; /* first page (physical page number) in range */
503 uint64_t nr_mfns; /* number of pages in range (>0) */
504 uint8_t allow_access; /* allow (!0) or deny (0) access to range? */
505 };
506 typedef struct dom0_iomem_permission dom0_iomem_permission_t;
507 DEFINE_XEN_GUEST_HANDLE(dom0_iomem_permission_t);
509 #define DOM0_HYPERCALL_INIT 48
510 struct dom0_hypercall_init {
511 domid_t domain; /* domain to be affected */
512 xen_pfn_t mfn; /* machine frame to be initialised */
513 };
514 typedef struct dom0_hypercall_init dom0_hypercall_init_t;
515 DEFINE_XEN_GUEST_HANDLE(dom0_hypercall_init_t);
517 #define DOM0_DOMAIN_SETUP 49
518 #define _XEN_DOMAINSETUP_hvm_guest 0
519 #define XEN_DOMAINSETUP_hvm_guest (1UL<<_XEN_DOMAINSETUP_hvm_guest)
520 typedef struct dom0_domain_setup {
521 domid_t domain; /* domain to be affected */
522 unsigned long flags; /* XEN_DOMAINSETUP_* */
523 #ifdef __ia64__
524 unsigned long bp; /* mpaddr of boot param area */
525 unsigned long maxmem; /* Highest memory address for MDT. */
526 #endif
527 } dom0_domain_setup_t;
528 DEFINE_XEN_GUEST_HANDLE(dom0_domain_setup_t);
530 struct dom0_op {
531 uint32_t cmd;
532 uint32_t interface_version; /* DOM0_INTERFACE_VERSION */
533 union {
534 struct dom0_createdomain createdomain;
535 struct dom0_pausedomain pausedomain;
536 struct dom0_unpausedomain unpausedomain;
537 struct dom0_destroydomain destroydomain;
538 struct dom0_getmemlist getmemlist;
539 struct sched_ctl_cmd schedctl;
540 struct sched_adjdom_cmd adjustdom;
541 struct dom0_setvcpucontext setvcpucontext;
542 struct dom0_getdomaininfo getdomaininfo;
543 struct dom0_getpageframeinfo getpageframeinfo;
544 struct dom0_msr msr;
545 struct dom0_settime settime;
546 struct dom0_readconsole readconsole;
547 struct dom0_setvcpuaffinity setvcpuaffinity;
548 struct dom0_tbufcontrol tbufcontrol;
549 struct dom0_physinfo physinfo;
550 struct dom0_sched_id sched_id;
551 struct dom0_shadow_control shadow_control;
552 struct dom0_setdomainmaxmem setdomainmaxmem;
553 struct dom0_getpageframeinfo2 getpageframeinfo2;
554 struct dom0_add_memtype add_memtype;
555 struct dom0_del_memtype del_memtype;
556 struct dom0_read_memtype read_memtype;
557 struct dom0_perfccontrol perfccontrol;
558 struct dom0_microcode microcode;
559 struct dom0_ioport_permission ioport_permission;
560 struct dom0_getvcpucontext getvcpucontext;
561 struct dom0_getvcpuinfo getvcpuinfo;
562 struct dom0_getdomaininfolist getdomaininfolist;
563 struct dom0_platform_quirk platform_quirk;
564 struct dom0_physical_memory_map physical_memory_map;
565 struct dom0_max_vcpus max_vcpus;
566 struct dom0_setdomainhandle setdomainhandle;
567 struct dom0_setdebugging setdebugging;
568 struct dom0_irq_permission irq_permission;
569 struct dom0_iomem_permission iomem_permission;
570 struct dom0_hypercall_init hypercall_init;
571 struct dom0_domain_setup domain_setup;
572 uint8_t pad[128];
573 } u;
574 };
575 typedef struct dom0_op dom0_op_t;
576 DEFINE_XEN_GUEST_HANDLE(dom0_op_t);
578 #endif /* __XEN_PUBLIC_DOM0_OPS_H__ */
580 /*
581 * Local variables:
582 * mode: C
583 * c-set-style: "BSD"
584 * c-basic-offset: 4
585 * tab-width: 4
586 * indent-tabs-mode: nil
587 * End:
588 */