Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/xen/blkfront/blkfront.c
Show First 20 Lines • Show All 1,433 Lines • ▼ Show 20 Lines | |||||
/*---------------------------- NewBus Entrypoints ----------------------------*/ | /*---------------------------- NewBus Entrypoints ----------------------------*/ | ||||
static int | static int | ||||
xbd_probe(device_t dev) | xbd_probe(device_t dev) | ||||
{ | { | ||||
if (strcmp(xenbus_get_type(dev), "vbd") != 0) | if (strcmp(xenbus_get_type(dev), "vbd") != 0) | ||||
return (ENXIO); | return (ENXIO); | ||||
if (xen_hvm_domain() && xen_disable_pv_disks != 0) | if (xen_pv_disks_disabled()) | ||||
return (ENXIO); | return (ENXIO); | ||||
if (xen_hvm_domain()) { | if (xen_hvm_domain()) { | ||||
int error; | int error; | ||||
char *type; | char *type; | ||||
/* | /* | ||||
* When running in an HVM domain, IDE disk emulation is | * When running in an HVM domain, IDE disk emulation is | ||||
▲ Show 20 Lines • Show All 202 Lines • Show Last 20 Lines |