diff options
Diffstat (limited to 'emulators/py-nova/files/04-xen-phy.patch')
-rw-r--r-- | emulators/py-nova/files/04-xen-phy.patch | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/emulators/py-nova/files/04-xen-phy.patch b/emulators/py-nova/files/04-xen-phy.patch deleted file mode 100644 index 84b4a07975c9..000000000000 --- a/emulators/py-nova/files/04-xen-phy.patch +++ /dev/null @@ -1,42 +0,0 @@ -From b4e9024ac90ed0eaf155bc24ef7ee3b01112366e Mon Sep 17 00:00:00 2001 -From: Alexander Nusov <alexander.nusov@nfvexpress.com> -Date: Tue, 15 Nov 2016 13:08:49 +0300 -Subject: [PATCH] foce xen phy option - ---- - nova/conf/libvirt.py | 3 +++ - nova/virt/libvirt/utils.py | 2 +- - 2 files changed, 4 insertions(+), 1 deletion(-) - -diff --git a/nova/conf/libvirt.py b/nova/conf/libvirt.py -index bfb278e..2eba080 100644 ---- a/nova/conf/libvirt.py -+++ b/nova/conf/libvirt.py -@@ -498,6 +498,9 @@ libvirt_imagebackend_opts = [ - help='Discard option for nova managed disks. Need' - ' Libvirt(1.0.6) Qemu1.5 (raw format) Qemu1.6(qcow2' - ' format)'), -+ cfg.BoolOpt('force_xen_phy', -+ default=False, -+ help='Force using of PHY driver in Xen'), - ] - - libvirt_imagecache_opts = [ -diff --git a/nova/virt/libvirt/utils.py b/nova/virt/libvirt/utils.py -index f0a4796..ff68d45 100644 ---- a/nova/virt/libvirt/utils.py -+++ b/nova/virt/libvirt/utils.py -@@ -112,7 +112,7 @@ def pick_disk_driver_name(hypervisor_version, is_block_dev=False): - :returns: driver_name or None - """ - if CONF.libvirt.virt_type == "xen": -- if is_block_dev: -+ if is_block_dev or CONF.libvirt.force_xen_phy: - return "phy" - else: - # 4002000 == 4.2.0 --- -2.8.1 - - - |