diff options
author | Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> | 2024-03-27 04:05:14 +0100 |
---|---|---|
committer | Anthony PERARD <anthony@xenproject.org> | 2024-07-01 14:57:18 +0200 |
commit | b2bbadc63c5e907bbb7a19244929ef4c028f3d01 (patch) | |
tree | 4f92d2ec61d9edecb5b0c8bd94b408cb7a1bccc1 /system | |
parent | b6d32a06fc0984e537091cba08f2e1ed9f775d74 (diff) |
hw/xen: detect when running inside stubdomain
Introduce global xen_is_stubdomain variable when qemu is running inside
a stubdomain instead of dom0. This will be relevant for subsequent
patches, as few things like accessing PCI config space need to be done
differently.
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
Message-Id: <e66aa97dca5120f22e015c19710b2ff04f525720.1711506237.git-series.marmarek@invisiblethingslab.com>
Signed-off-by: Anthony PERARD <anthony@xenproject.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/globals.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/system/globals.c b/system/globals.c index e353584201..d602a04fa2 100644 --- a/system/globals.c +++ b/system/globals.c @@ -60,6 +60,7 @@ bool qemu_uuid_set; uint32_t xen_domid; enum xen_mode xen_mode = XEN_DISABLED; bool xen_domid_restrict; +bool xen_is_stubdomain; struct evtchn_backend_ops *xen_evtchn_ops; struct gnttab_backend_ops *xen_gnttab_ops; struct foreignmem_backend_ops *xen_foreignmem_ops; |