/xen/tools/libxl/ |
A D | libxl_disk.c | 42 libxl_device_disk *disk = &ev->u.disk_eject.disk; in disk_eject_xswatch_callback() local 73 disk->is_cdrom = 1; in disk_eject_xswatch_callback() 159 libxl_defbool_setdefault(&disk->discard_enable, !!disk->readwrite); in libxl__device_disk_setdefault() 684 cis->disk = disk; in libxl_cdrom_insert() 808 libxl_device_disk *disk = cis->disk; in cdrom_insert_ejected() local 921 libxl_device_disk *disk = cis->disk; in cdrom_insert_addfd_cb() local 964 libxl_device_disk *disk = cis->disk; in cdrom_insert_inserted() local 1088 disk++; in libxl__alloc_vdev() 1173 libxl_device_disk *disk = &dls->disk; in libxl__device_disk_local_initiate_attach() local 1225 libxl_device_disk *disk = &dls->disk; in local_device_attach_cb() local [all …]
|
A D | libxlu_disk.c | 51 libxl_device_disk *disk) { in xlu_disk_parse() argument 58 dpc.disk = disk; in xlu_disk_parse() 60 disk->readwrite = 1; in xlu_disk_parse() 74 disk->format = LIBXL_DISK_FORMAT_RAW; in xlu_disk_parse() 76 if (disk->is_cdrom) { in xlu_disk_parse() 77 disk->removable = 1; in xlu_disk_parse() 78 disk->readwrite = 0; in xlu_disk_parse() 79 if (!disk->pdev_path || !strcmp(disk->pdev_path, "")) in xlu_disk_parse() 80 disk->format = LIBXL_DISK_FORMAT_EMPTY; in xlu_disk_parse() 83 if (!disk->vdev) { in xlu_disk_parse() [all …]
|
A D | libxlu_disk_l.l | 100 dpc->disk->readwrite = 0; in setaccess() 102 dpc->disk->readwrite = 1; in setaccess() 132 dpc->disk->colo_port = port; in setcoloport() 152 DPC->disk->is_cdrom = 1; in vdev_and_devtype() 154 DPC->disk->is_cdrom = 0; in vdev_and_devtype() 187 cdrom,? { DPC->disk->is_cdrom = 1; } 188 devtype=cdrom,? { DPC->disk->is_cdrom = 1; } 189 devtype=disk,? { DPC->disk->is_cdrom = 0; } 198 direct-io-safe,? { DPC->disk->direct_io_safe = 1; } 262 } else if (!DPC->disk->pdev_path) { [all …]
|
A D | libxl_colo_qdisk.c | 40 const libxl_device_disk *disk = dev->backend_dev; in colo_qdisk_setup() local 47 const char *host = disk->colo_host; in colo_qdisk_setup() 48 const char *export_name = disk->colo_export; in colo_qdisk_setup() 53 if (disk->backend != LIBXL_DISK_BACKEND_QDISK || in colo_qdisk_setup() 54 !libxl_defbool_val(disk->colo_enable) || in colo_qdisk_setup() 56 !disk->active_disk || !disk->hidden_disk) { in colo_qdisk_setup() 74 sprintf(port, "%d", disk->colo_port); in colo_qdisk_setup() 117 const char *export_name = disk->colo_export; in colo_qdisk_teardown() 160 const char *host = disk->colo_host; in colo_qdisk_save_preresume() 161 int port = disk->colo_port; in colo_qdisk_save_preresume() [all …]
|
A D | check-xl-disk-parse | 12 fprefix=tmp.check-xl-disk-parse 54 disk: { 69 disk: { 86 disk: { 98 disk: { 114 disk: { 126 disk: { 141 disk: { 156 disk: { 165 one 0 discard vdev=hda target=/some/disk/image.raw [all …]
|
A D | libxl_device.c | 284 libxl_device_disk *disk; member 310 if (a->disk->script) { in disk_try_backend() 341 a->disk->vdev, in disk_try_backend() 377 a.disk = disk; in libxl__device_disk_set_backend() 383 if (!disk->is_cdrom) { in libxl__device_disk_set_backend() 387 if (disk->pdev_path != NULL && strcmp(disk->pdev_path, "")) { in libxl__device_disk_set_backend() 390 disk->vdev, disk->pdev_path); in libxl__device_disk_set_backend() 400 disk->vdev, disk->pdev_path); in libxl__device_disk_set_backend() 421 disk->backend = ok; in libxl__device_disk_set_backend() 524 int disk, partition; in libxl__device_disk_dev_number() local [all …]
|
A D | libxlu_disk_l.c | 1138 dpc->disk->readwrite = 0; in setaccess() 1140 dpc->disk->readwrite = 1; in setaccess() 1170 dpc->disk->colo_port = port; in setcoloport() 1190 DPC->disk->is_cdrom = 1; in vdev_and_devtype() 1192 DPC->disk->is_cdrom = 0; in vdev_and_devtype() 1588 { DPC->disk->is_cdrom = 1; } 1593 { DPC->disk->is_cdrom = 1; } 1598 { DPC->disk->is_cdrom = 0; } 1639 { DPC->disk->direct_io_safe = 1; } 1798 } else if (!DPC->disk->pdev_path) { [all …]
|
A D | libxl_remus_disk_drbd.c | 66 const libxl_device_disk *disk = dev->backend_dev; in match_async_exec() local 81 aes->args[nr++] = disk->pdev_path; in match_async_exec() 111 const libxl_device_disk *disk = dev->backend_dev; in match_async_exec_cb() local 131 drbd_disk->ctl_fd = open(disk->pdev_path, O_RDONLY); in match_async_exec_cb()
|
A D | libxl_checkpoint_device.c | 136 libxl_device_disk * disk = NULL; in device_setup_iterate() local 144 disk = (libxl_device_disk *)dev->backend_dev; in device_setup_iterate() 145 domid = disk->backend_domid; in device_setup_iterate() 146 devid = libxl__device_disk_dev_number(disk->vdev, NULL, NULL); in device_setup_iterate()
|
A D | libxlu_disk_i.h | 12 libxl_device_disk *disk; member
|
/xen/tools/hotplug/NetBSD/ |
A D | block | 61 disk="vnd$i" 62 available_disks="$available_disks $disk" 63 eval $disk=free 66 for disk in `sysctl hw.disknames`; do 67 case $disk in 68 vnd[0-9]*) eval $disk=used ;; 72 for disk in $available_disks; do 73 eval status=\$$disk 75 vnconfig /dev/${disk}d $xparams >/dev/null; then 76 device=/dev/${disk}d
|
/xen/tools/xl/ |
A D | xl_cdrom.c | 30 libxl_device_disk disk; in cd_insert() local 39 parse_disk_config(&config, buf, &disk); in cd_insert() 46 if (disk.format != LIBXL_DISK_FORMAT_EMPTY in cd_insert() 47 && stat(disk.pdev_path, &b)) { in cd_insert() 49 disk.pdev_path); in cd_insert() 54 if (libxl_cdrom_insert(ctx, domid, &disk, NULL)) { in cd_insert() 62 libxl_device_disk_dispose(&disk); in cd_insert()
|
A D | xl_block.c | 29 libxl_device_disk disk; in main_blockattach() local 43 (&config, argc-optind, (const char* const*)argv + optind, &disk); in main_blockattach() 46 char *json = libxl_device_disk_to_json(ctx, &disk); in main_blockattach() 53 if (libxl_device_disk_add(ctx, fe_domid, &disk, 0)) { in main_blockattach() 101 libxl_device_disk disk; in main_blockdetach() local 109 if (libxl_vdev_to_device_disk(ctx, domid, argv[optind+1], &disk)) { in main_blockdetach() 113 rc = libxl_device_disk_remove(ctx, domid, &disk, 0); in main_blockdetach() 118 libxl_device_disk_dispose(&disk); in main_blockdetach()
|
A D | xl_parse.h | 27 libxl_device_disk *disk); 31 libxl_device_disk *disk);
|
/xen/docs/man/ |
A D | xen-vbd-interface.7.pandoc | 10 * Nominal disk type: Xen virtual disk (aka xvd*, the default); SCSI 19 ich9 disk controller. 30 conventionally starting at 0 for the first disk. 33 convention partition 0 indicates the "whole disk". 38 or disk label on it); 54 d0 d0p0 xvda Xen virtual disk 0 partition 0 (whole disk) 55 d1p2 xvdb2 Xen virtual disk 1 partition 2 56 d536p37 xvdtq37 Xen virtual disk 536 partition 37 57 sdb3 SCSI disk 1 partition 3 58 hdc2 IDE disk 2 partition 2 [all …]
|
A D | xl-disk-configuration.5.pod | 3 xl-disk-configuration - XL Disk Configuration Syntax 7 This document specifies the xl config file format disk configuration 10 disk = [ 'DISKSPEC', 'DISKSPEC', ... ] 36 disk = [ '/dev/vg/guest-volume,,hda', '/root/image.iso,,hdc,cdrom' ] 309 It's important to note that if you are storing the VM disk on a 356 Enable COLO HA for disk. For better understanding block replication on 398 the nbd server's disk export name. 406 =item B<active-disk> 413 disk. 421 =item B<hidden-disk>
|
/xen/stubdom/vtpmmgr/ |
A D | disk_write.c | 181 struct disk_group_sector disk; in disk_write_group_sector() local 193 memset(&disk, 0, sizeof(disk)); in disk_write_group_sector() 194 memcpy(&disk.v.id_data, &group->id_data, sizeof(disk.v.id_data)); in disk_write_group_sector() 195 memcpy(&disk.v.details, &group->details, sizeof(disk.v.details)); in disk_write_group_sector() 199 disk.v.nr_vtpms = native_be32(group->nr_vtpms); in disk_write_group_sector() 204 disk_write_vtpm_itree(src, 0, group->nr_pages, disk.v.vtpm_hash, disk.vtpm_location, in disk_write_group_sector() 208 memcpy(&disk.v.boot_configs, &group->seal_bits, sizeof(group->seal_bits)); in disk_write_group_sector() 210 aes_cmac(&disk.group_mac, &disk.v, sizeof(disk.v), &key_e); in disk_write_group_sector() 211 sha256(&src->disk_hash, &disk.v, sizeof(disk.v) + sizeof(disk.group_mac)); in disk_write_group_sector() 212 disk_write_crypt_sector(&src->disk_loc, &disk, sizeof(disk), mgr); in disk_write_group_sector()
|
A D | disk_read.c | 330 struct disk_group_sector disk; in load_verify_group() local 337 rc = disk_read_crypt_sector(&disk, sizeof(disk), dst->disk_loc, mgr); in load_verify_group() 343 rc = sha256_verify(&dst->disk_hash, &disk.v, sizeof(disk.v) + sizeof(disk.group_mac)); in load_verify_group() 351 rc = find_group_key(group, &disk, mgr); in load_verify_group() 356 if (aes_cmac_verify(&disk.group_mac, &disk.v, sizeof(disk.v), opened_key)) { in load_verify_group() 361 memcpy(&group->id_data, &disk.v.id_data, sizeof(group->id_data)); in load_verify_group() 362 memcpy(&group->details, &disk.v.details, sizeof(group->details)); in load_verify_group() 371 group->nr_vtpms = be32_native(disk.v.nr_vtpms); in load_verify_group() 376 rc = load_verify_vtpm_itree(dst, 0, group->nr_pages, disk.v.vtpm_hash, in load_verify_group() 377 disk.vtpm_location, NR_ENTRIES_PER_GROUP_BASE, mgr, opened_key); in load_verify_group()
|
/xen/tools/pygrub/src/ |
A D | GrubConf.py | 56 (self.disk, self.part) = str.split(",", 2) 58 self.disk = str 63 return "d%dp%d" %(self.disk, self.part) 65 return "d%d" %(self.disk,) 72 disk = val[len("/dev/xvd")] 73 self._disk = ord(disk)-ord('a') 76 disk = property(get_disk, set_disk) variable in GrubDiskPart
|
/xen/tools/hotplug/Linux/ |
A D | block-iscsi | 76 while [ ! -e /dev/disk/by-path/*"$iqn"-lun-0 ]; do 84 sddev=$(readlink -f /dev/disk/by-path/*"$iqn"-lun-0 || true)
|
/xen/tools/examples/ |
A D | xlexample.pvhlinux | 41 # docs/misc/xl-disk-configuration.txt 42 disk = [ '/dev/zvol/tank/guest-volume,raw,xvda,rw' ]
|
A D | xlexample.pvlinux | 43 # docs/misc/xl-disk-configuration.txt 44 disk = [ '/dev/vg/guest-volume,raw,xvda,rw' ]
|
A D | xlexample.hvm | 42 # docs/misc/xl-disk-configuration.txt 43 disk = [ '/dev/vg/guest-volume,raw,xvda,rw' ]
|
/xen/docs/ |
A D | README.remus | 13 VMs protected by Remus need to use DRBD based disk backends. Specifically, you 17 protocol D) for asynchronous disk checkpoint replication. A protected VM's DRBD
|
/xen/docs/misc/ |
A D | vtpm-platforms.txt | 31 disk=["file:/images/vtpmmgr-stubdom.img,hda,w"] 40 disk=["file:/images/vtpm-guest1.img,hda,w"] 47 disk=["file:/images/vtpm-guest2.img,hda,w"] 55 disk=["file:/images/guest1.img,xvda,w"] 62 disk=["file:/images/guest2.img,xvda,w"] 125 to the vTPM, the guest may use full-disk encryption which can be unlocked using
|