| 1 |
############################################################################### |
| 2 |
# |
| 3 |
# Domain creation |
| 4 |
# |
| 5 |
############################################################################### |
| 6 |
|
| 7 |
declare_domain(domU_t) |
| 8 |
domain_self_comms(domU_t) |
| 9 |
create_domain(dom0_t, domU_t) |
| 10 |
manage_domain(dom0_t, domU_t) |
| 11 |
domain_comms(dom0_t, domU_t) |
| 12 |
domain_comms(domU_t, domU_t) |
| 13 |
migrate_domain_out(dom0_t, domU_t) |
| 14 |
domain_self_comms(domU_t) |
| 15 |
|
| 16 |
# Allow the hypervisor to build domains of type domU_t |
| 17 |
xen_build_domain(domU_t) |
| 18 |
|
| 19 |
# Device model for domU_t. You can define distinct types for device models for |
| 20 |
# domains of other types, or add more make_device_model lines for this type. |
| 21 |
declare_domain(dm_dom_t) |
| 22 |
create_domain(dom0_t, dm_dom_t) |
| 23 |
manage_domain(dom0_t, dm_dom_t) |
| 24 |
domain_comms(dom0_t, dm_dom_t) |
| 25 |
make_device_model(dom0_t, dm_dom_t, domU_t) |
| 26 |
|
| 27 |
# This is required for PCI (or other device) passthrough |
| 28 |
delegate_devices(dom0_t, domU_t) |
| 29 |
|
| 30 |
# Both of these domain types can be created using the default (system) role |
| 31 |
role system_r types { domU_t dm_dom_t }; |