blkfront.c (ab875b713d0afab5f0650f06d48a38777a7ae43e) | blkfront.c (f8f1bb83f78e8a2b7f4f10432882c39bbd7952fb) |
---|---|
1/* 2 * XenBSD block device driver 3 * 4 * Copyright (c) 2010-2013 Spectra Logic Corporation 5 * Copyright (c) 2009 Scott Long, Yahoo! 6 * Copyright (c) 2009 Frank Suchomel, Citrix 7 * Copyright (c) 2009 Doug F. Rabson, Citrix 8 * Copyright (c) 2005 Kip Macy --- 1352 unchanged lines hidden (view full) --- 1361 1362/*---------------------------- NewBus Entrypoints ----------------------------*/ 1363static int 1364xbd_probe(device_t dev) 1365{ 1366 if (strcmp(xenbus_get_type(dev), "vbd") != 0) 1367 return (ENXIO); 1368 | 1/* 2 * XenBSD block device driver 3 * 4 * Copyright (c) 2010-2013 Spectra Logic Corporation 5 * Copyright (c) 2009 Scott Long, Yahoo! 6 * Copyright (c) 2009 Frank Suchomel, Citrix 7 * Copyright (c) 2009 Doug F. Rabson, Citrix 8 * Copyright (c) 2005 Kip Macy --- 1352 unchanged lines hidden (view full) --- 1361 1362/*---------------------------- NewBus Entrypoints ----------------------------*/ 1363static int 1364xbd_probe(device_t dev) 1365{ 1366 if (strcmp(xenbus_get_type(dev), "vbd") != 0) 1367 return (ENXIO); 1368 |
1369 if (xen_hvm_domain() && xen_disable_pv_disks != 0) 1370 return (ENXIO); 1371 |
|
1369 if (xen_hvm_domain()) { 1370 int error; 1371 char *type; 1372 1373 /* 1374 * When running in an HVM domain, IDE disk emulation is 1375 * disabled early in boot so that native drivers will 1376 * not see emulated hardware. However, CDROM device --- 192 unchanged lines hidden --- | 1372 if (xen_hvm_domain()) { 1373 int error; 1374 char *type; 1375 1376 /* 1377 * When running in an HVM domain, IDE disk emulation is 1378 * disabled early in boot so that native drivers will 1379 * not see emulated hardware. However, CDROM device --- 192 unchanged lines hidden --- |