diff options
| author | Roger Pau Monné <royger@FreeBSD.org> | 2018-07-19 08:00:52 +0000 |
|---|---|---|
| committer | Roger Pau Monné <royger@FreeBSD.org> | 2018-07-19 08:00:52 +0000 |
| commit | 3653af112f73318b7bcf37c54a79120b5d6f33c1 (patch) | |
| tree | 4544b71fd4e4cf6e61dd987f04f0d3e67f1b57d5 /sys/dev/xen | |
| parent | fa6090423244d1ebcf72e8db2d32a83582343422 (diff) | |
Notes
Diffstat (limited to 'sys/dev/xen')
| -rw-r--r-- | sys/dev/xen/pvcpu/pvcpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/xen/pvcpu/pvcpu.c b/sys/dev/xen/pvcpu/pvcpu.c index c70525216000..2d41dac387ad 100644 --- a/sys/dev/xen/pvcpu/pvcpu.c +++ b/sys/dev/xen/pvcpu/pvcpu.c @@ -49,8 +49,8 @@ xenpvcpu_identify(driver_t *driver, device_t parent) { int i; - /* Only attach to PV guests, HVM guests use the ACPI CPU devices */ - if (!xen_pv_domain()) + /* Only attach in case the per-CPU device is not set. */ + if (!xen_domain() || PCPU_GET(device) != NULL) return; CPU_FOREACH(i) { |
