[libvirt] [RFC PATCH auto partition NUMA guest domains v1 0/2] auto partition guests providing the host NUMA topology

2018-09-25 Thread Wim Ten Have
From: Wim ten Have This patch extends the guest domain administration adding support to automatically advertise the host NUMA node capabilities obtained architecture under a guest by creating a vNUMA copy. The mechanism is enabled by setting the check='numa' attribute under the

[libvirt] [RFC PATCH auto partition NUMA guest domains v1 2/2] qemuxml2argv: add tests that exercise vNUMA auto partition topology

2018-09-25 Thread Wim Ten Have
From: Wim ten Have Add tests to ensure that the virDomainNumaAutoconfig() routine to auto- partition vNUMA topology generates correct KVM/QEMU cmdline arguments under applicable setup. Signed-off-by: Wim ten Have --- .../cpu-host-passthrough-nonuma.args | 25

[libvirt] [RFC PATCH auto partition NUMA guest domains v1 1/2] domain: auto partition guests providing the host NUMA topology

2018-09-25 Thread Wim Ten Have
From: Wim ten Have Add a mechanism to auto partition the host NUMA topology under the guest domain. This patch adds a framework to automatically partition the host into a small vNUMA subset defined by the guest XML given and description when are in effect and the hypervisor indicates per the

Re: [libvirt] [RFC PATCH auto partition NUMA guest domains v1 0/2] auto partition guests providing the host NUMA topology

2018-10-15 Thread Wim ten Have
On Tue, 25 Sep 2018 14:37:15 +0200 Jiri Denemark wrote: > On Tue, Sep 25, 2018 at 12:02:40 +0200, Wim Ten Have wrote: > > From: Wim ten Have > > > > This patch extends the guest domain administration adding support > > to automatically advertise the host NUMA

[libvirt] [PATCH v1 2/2] tests: add qemu-img test for preallocation=falloc

2018-04-03 Thread Wim Ten Have
From: Wim ten Have Signed-off-by: Wim ten Have --- tests/storagevolxml2argvdata/qcow2-nocapacity-convert-prealloc.argv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/storagevolxml2argvdata/qcow2-nocapacity-convert-prealloc.argv b/tests/storagevolxml2argvdata/qcow2

[libvirt] [PATCH v1 0/2] Fix qcow2 fully allocated filesystem objects.

2018-04-03 Thread Wim Ten Have
From: Wim ten Have When tools like virt-install request to create a fully allocated filesystem object storage by setting the parameter sparse=no, libvirt doesn't allow that to happen for qcow2 formatted files. Regardless of its XML instuction request libvirt always targets its filesystem o

[libvirt] [PATCH v1 1/2] storage: extend preallocation flags support for qemu-img

2018-04-03 Thread Wim Ten Have
From: Wim ten Have This patch adds support to qcow2 formatted filesystem object storage by instructing qemu-img to build them with preallocation=falloc whenever the XML described storage matches its . For all other cases the filesystem stored objects are built with preallocation=metadata

[libvirt] [PATCH v2 0/1] Fix qcow2 fully allocated filesystem objects.

2018-04-09 Thread Wim Ten Have
From: Wim ten Have When tools like virt-install request to create a fully allocated filesystem object storage by setting the parameter sparse=no, libvirt doesn't allow that to happen for qcow2 formatted files. Regardless of its XML instuction request libvirt always targets its filesystem o

Re: [libvirt] [PATCH v1 1/2] storage: extend preallocation flags support for qemu-img

2018-04-09 Thread Wim ten Have
On Wed, 4 Apr 2018 13:31:39 +0200 Michal Privoznik wrote: > On 04/03/2018 04:14 PM, Wim Ten Have wrote: > > From: Wim ten Have > > > > This patch adds support to qcow2 formatted filesystem object storage by > > instructing qemu-img to build them with preallocation=

[libvirt] [PATCH v2 1/1] storage: extend preallocation flags support for qemu-img

2018-04-09 Thread Wim Ten Have
From: Wim ten Have This patch adds support to qcow2 formatted filesystem object storage by instructing qemu-img to build them with preallocation=falloc whenever the XML described storage matches its . For all other cases the filesystem stored objects are built with preallocation=metadata

[libvirt] [PATCH v1] libxl: report numa sibling distances on host capabilities

2017-05-02 Thread Wim Ten Have
From: Wim ten Have When running on a NUMA machine, populate the sibling node and distance information using data supplied by Xen. With locality distances information, under Xen, new host capabilities would like: 263902380

[libvirt] [PATCH v1] libxl: report numa sibling distances on host capabilities

2017-05-02 Thread Wim Ten Have
From: Wim ten Have When running on a NUMA machine, populate the sibling node and distance information using data supplied by Xen. Wim ten Have (1): libxl: report numa sibling distances on host capabilities src/libxl/libxl_capabilities.c | 20 ++-- 1 file changed, 18

[libvirt] [PATCH v2] libxl: report numa sibling distances on host capabilities

2017-05-09 Thread Wim Ten Have
From: Wim ten Have When running on a NUMA machine, populate the sibling node and distance information using data supplied by Xen. Wim ten Have (1): libxl: report numa sibling distances on host capabilities src/libxl/libxl_capabilities.c | 19 +-- 1 file changed, 17

[libvirt] [PATCH v2] libxl: report numa sibling distances on host capabilities

2017-05-09 Thread Wim Ten Have
From: Wim ten Have When running on a NUMA machine, populate the sibling node and distance information using data supplied by Xen. With locality distances information, under Xen, new host capabilities would like: 263902380

[libvirt] [PATCH v1] xenParseXLDiskSrc: protect against a NULL pointer reference

2017-05-19 Thread Wim Ten Have
From: Wim ten Have This patch protects against a NULL pointer dereference leading to a SEGV and that way taking out libvirtd while performing domain conversion requests per domxml-from-native xen-xl xl.cfg within xenParseXLDiskSrc() when partial disk parameters are provided. Wim ten Have (1

[libvirt] [PATCH v1] xenParseXLDiskSrc: protect against a NULL pointer reference

2017-05-19 Thread Wim Ten Have
From: Wim ten Have Working larger code changes whilst testing functionality and domxml conversion methodology for xen-xl (xenconfig) a cumbersome caveat surfaced that potentially can take libvirtd out with a SEGV when parsing complex disk xl.cfg directives. This patch also includes tests

Re: [libvirt] [PATCH v1] xenParseXLDiskSrc: protect against a NULL pointer reference

2017-05-19 Thread Wim ten Have
On Fri, 19 May 2017 08:12:08 -0600 Jim Fehlig wrote: > On 05/19/2017 06:38 AM, Wim Ten Have wrote: > > From: Wim ten Have > > > > Working larger code changes whilst testing functionality and domxml > > conversion methodology for xen-xl (xenconfig) a cumberso

[libvirt] [PATCH v2] xenconfig: fix handling of NULL disk source

2017-05-19 Thread Wim Ten Have
From: Wim ten Have It is possible to crash libvirtd when converting xl native config to domXML when the xl config contains an empty disk source, e.g. an empty CDROM. Fix by checking that the disk source is non-NULL before parsing it. Signed-off-by: Wim ten Have --- src/xenconfig/xen_xl.c

[libvirt] [PATCH v2] xenconfig: fix handling of NULL disk source

2017-05-19 Thread Wim Ten Have
From: Wim ten Have It is possible to crash libvirtd when converting xl native config to domXML when the xl config contains an empty disk source, e.g. an empty CDROM. Fix by checking that the disk source is non-NULL before parsing it. Wim ten Have (1): xenconfig: fix handling of NULL disk

[libvirt] [RFC PATCH v1 4/4] xlconfigtest: add tests for numa cell sibling distances

2017-06-12 Thread Wim Ten Have
From: Wim ten Have Test a bidirectional xen-xl domxml to and from native for numa support administration as brought under this patch series. Signed-off-by: Wim ten Have --- .../test-fullvirt-vnuma-nodistances.cfg| 26 +++ .../test-fullvirt-vnuma-nodistances.xml| 54

[libvirt] [RFC PATCH v1 0/4] numa: describe sibling nodes distances

2017-06-12 Thread Wim Ten Have
From: Wim ten Have This patch extents guest domain administration adding support to advertise node sibling distances when configuring HVM numa guests. NUMA (non-uniform memory access), a method of configuring a cluster of nodes within a single multiprocessing system such that it shares

[libvirt] [RFC PATCH v1 3/4] xenconfig: add domxml conversions for xen-xl

2017-06-12 Thread Wim Ten Have
From: Wim ten Have This patch converts NUMA configurations between the Xen libxl configuration file format and libvirt's XML format. XML HVM domain configur

[libvirt] [RFC PATCH v1 1/4] numa: describe siblings distances within cells

2017-06-12 Thread Wim Ten Have
From: Wim ten Have Add libvirtd NUMA cell domain administration functionality to describe underlying cell id sibling distances in full fashion when configuring HVM guests. [below is an example of a 4 node setup

[libvirt] [RFC PATCH v1 2/4] libxl: vnuma support

2017-06-12 Thread Wim Ten Have
From: Wim ten Have This patch generates a NUMA distance-aware libxl description from the information extracted from a NUMA distance-aware libvirt XML file. By default, if no NUMA node distance information is supplied in the libvirt XML file, this patch uses the distances 10 for local and 21 for

Re: [libvirt] [RFC PATCH v1 1/4] numa: describe siblings distances within cells

2017-06-21 Thread Wim ten Have
On Mon, 19 Jun 2017 12:26:20 -0600 Jim Fehlig wrote: > On 06/12/2017 12:54 PM, Wim Ten Have wrote: > > From: Wim ten Have > > > > Add libvirtd NUMA cell domain administration functionality to > > describe underlying cell id sibling distances in full fashion >

Re: [libvirt] [RFC PATCH v1 4/4] xlconfigtest: add tests for numa cell sibling distances

2017-06-23 Thread Wim ten Have
On Thu, 22 Jun 2017 16:16:16 +0100 Joao Martins wrote: > On 06/12/2017 07:54 PM, Wim Ten Have wrote: > > From: Wim ten Have > > > > Test a bidirectional xen-xl domxml to and from native for numa > > support administration as brought under this patch series. > >

Re: [libvirt] [RFC PATCH v1 1/4] numa: describe siblings distances within cells

2017-06-27 Thread Wim ten Have
On Wed, 21 Jun 2017 21:08:30 +0200 Wim ten Have wrote: > On Mon, 19 Jun 2017 12:26:20 -0600 > Jim Fehlig wrote: > > > On 06/12/2017 12:54 PM, Wim Ten Have wrote: > > > From: Wim ten Have > > > > > > Add libvirtd NUMA cell domain administration funct

[libvirt] [RFC PATCH v2 3/4] xenconfig: add domxml conversions for xen-xl

2017-06-28 Thread Wim Ten Have
From: Wim ten Have This patch converts NUMA configurations between the Xen libxl configuration file format and libvirt's XML format. XML HVM domain configur

[libvirt] [RFC PATCH v2 4/4] xlconfigtest: add tests for numa cell sibling distances

2017-06-28 Thread Wim Ten Have
From: Wim ten Have Test a bidirectional xen-xl domxml to and from native for numa support administration as brought under this patch series. Signed-off-by: Wim ten Have --- .../test-fullvirt-vnuma-nodistances.cfg| 26 +++ .../test-fullvirt-vnuma-nodistances.xml| 53

[libvirt] [RFC PATCH v2 0/4] numa: describe sibling nodes distances

2017-06-28 Thread Wim Ten Have
From: Wim ten Have This patch extents guest domain administration adding support to advertise node sibling distances when configuring HVM numa guests. NUMA (non-uniform memory access), a method of configuring a cluster of nodes within a single multiprocessing system such that it shares

[libvirt] [RFC PATCH v2 1/4] numa: describe siblings distances within cells

2017-06-28 Thread Wim Ten Have
From: Wim ten Have Add libvirtd NUMA cell domain administration functionality to describe underlying cell id sibling distances in full fashion when configuring HVM guests. [below is an example of a 4 node setup

[libvirt] [RFC PATCH v2 2/4] libxl: vnuma support

2017-06-28 Thread Wim Ten Have
From: Wim ten Have This patch generates a NUMA distance-aware libxl description from the information extracted from a NUMA distance-aware libvirt XML file. By default, if no NUMA node distance information is supplied in the libvirt XML file, this patch uses the distances 10 for local and 21 for

Re: [libvirt] [RFC PATCH v2 1/4] numa: describe siblings distances within cells

2017-07-03 Thread Wim ten Have
tive. Such in a way brings intelligence into libvirt and therefor not wanted. Perhaps this is up to s/w stack utilizing guests per libvirt. If there are thoughts on such matter then i am very interested to hear about them. > On Wed, Jun 28, 2017 at 03:56:36PM +0200, Wim Ten Have wrote:

Re: [libvirt] [RFC PATCH v2 1/4] numa: describe siblings distances within cells

2017-07-18 Thread Wim ten Have
On Wed, 28 Jun 2017 15:21:29 +0100 "Daniel P. Berrange" wrote: > On Wed, Jun 28, 2017 at 03:56:36PM +0200, Wim Ten Have wrote: > > From: Wim ten Have > > > > Add libvirtd NUMA cell domain administration functionality to > > describe underlying cell id sibli

Re: [libvirt] [PATCH v5 3/4] libxl: vnuma support

2017-11-01 Thread Wim ten Have
On Thu, 26 Oct 2017 17:40:37 -0600 Jim Fehlig wrote: > On 10/12/2017 01:31 PM, Wim Ten Have wrote: > > From: Wim ten Have > > > > This patch generates a NUMA distance-aware libxl description from the > > information extracted from a NUMA dist

Re: [libvirt] [PATCH v5 2/4] xenconfig: add domxml conversions for xen-xl

2017-11-01 Thread Wim ten Have
On Thu, 26 Oct 2017 16:46:33 -0600 Jim Fehlig wrote: > On 10/12/2017 01:31 PM, Wim Ten Have wrote: > > From: Wim ten Have > > > > This patch converts NUMA configurations between the Xen libxl > > configuration file format and libvirt's XML format.

Re: [libvirt] [PATCH v5 4/4] xlconfigtest: add tests for numa cell sibling distances

2017-11-01 Thread Wim ten Have
On Thu, 26 Oct 2017 17:51:34 -0600 Jim Fehlig wrote: > On 10/12/2017 01:31 PM, Wim Ten Have wrote: > > From: Wim ten Have > > > > Test a bidirectional xen-xl domxml to and from native for numa > > support administration as brought under this patch series. > >

[libvirt] [PATCH v6 4/4] xlconfigtest: add tests for numa cell sibling distances

2017-11-02 Thread Wim Ten Have
From: Wim ten Have Test a bidirectional xen-xl domxml to and from native for vnuma support administration as brought under this patch series. Added tests for the libxl_domain_config generator determining vnuma conversion for XML-2-json and json-2-XML. Signed-off-by: Wim ten Have --- Changes

[libvirt] [PATCH v6 2/4] xenconfig: add domxml conversions for xen-xl

2017-11-02 Thread Wim Ten Have
From: Wim ten Have This patch converts NUMA configurations between the Xen libxl configuration file format and libvirt's XML format. XML HVM domain on a 4 node (2 cores/socket) configur

[libvirt] [PATCH v6 0/4] numa: describe sibling nodes distances

2017-11-02 Thread Wim Ten Have
From: Wim ten Have This patch extends guest domain administration adding support to advertise node sibling distances when configuring NUMA guests also referred to as vNUMA (Virtual NUMA). NUMA (Non-Uniform Memory Access), a method of configuring a cluster of nodes within a single

[libvirt] [PATCH v6 1/4] numa: describe siblings distances within cells

2017-11-02 Thread Wim Ten Have
From: Wim ten Have Add support for describing NUMA distances in a domain's XML description. Below is an example of a 4 node

[libvirt] [PATCH v6 3/4] libxl: vnuma support

2017-11-02 Thread Wim Ten Have
From: Wim ten Have This patch generates a NUMA distance-aware libxl description from the information extracted from a NUMA distance-aware libvirt XML file. By default, if no NUMA node distance information is supplied in the libvirt XML file, this patch uses the distances 10 for local and 20 for

Re: [libvirt] [PATCH v5 4/4] xlconfigtest: add tests for numa cell sibling distances

2017-11-02 Thread Wim ten Have
On Wed, 1 Nov 2017 20:45:46 +0100 Wim ten Have wrote: > On Thu, 26 Oct 2017 17:51:34 -0600 > Jim Fehlig wrote: > > > On 10/12/2017 01:31 PM, Wim Ten Have wrote: > > > From: Wim ten Have > > > > > > Test a bidirectional xen-xl domxml to and from na

Re: [libvirt] Libvirt config converter can't handle file not ending with new line

2017-11-07 Thread Wim ten Have
On Tue, 7 Nov 2017 12:20:05 + Wei Liu wrote: > On Mon, Nov 06, 2017 at 09:41:01PM -0700, Jim Fehlig wrote: > > On 10/30/2017 06:17 AM, Wei Liu wrote: > > > Hi Jim > > > > > > I discover a problem when using xen_xl converter. When the file in > > > question doesn't end with a new line, I ge

Re: [libvirt] [PATCH v6 4/4] xlconfigtest: add tests for numa cell sibling distances

2017-11-11 Thread Wim ten Have
On Fri, 10 Nov 2017 13:59:25 -0700 Jim Fehlig wrote: > On 11/10/2017 01:55 PM, Jim Fehlig wrote: > > On 11/02/2017 09:47 AM, Wim Ten Have wrote: > >> From: Wim ten Have > >> > >> Test a bidirectional xen-xl domxml to and from native for vnuma > >>

[libvirt] [PATCH v1 3/3] xlconfigtest: add test and data for 'nestedhvm' support

2017-03-08 Thread Wim Ten Have
From: Wim ten Have Configurations containing (within its CPU element) following: Intel virtualization (VT-x): AMD virtualization (AMD-V): generate nestedhvm=1 in/from xl format. Signed-off-by: Wim ten Have --- tests/xlconfigdata/test-fullvirt-nestedhvm.cfg | 26 +++ tests

[libvirt] [PATCH v1 0/3] libxl: nestedhvm support

2017-03-08 Thread Wim Ten Have
From: Wim ten Have This patch enhances host-passthrough capability to advertise the required vendor CPU virtualization feature which will be used to enable 'nestedhvm' in the libxl driver. For Intel virtualization (VT-x) .. For AMD virtualization (AMD-V) ..

[libvirt] [PATCH v1 2/3] xenconfig: add conversion of domxml nestedhvm

2017-03-08 Thread Wim Ten Have
From: Joao Martins In other words, on configurations containing (within its CPU element) one of the following for a host-passthrough mode: It will then generate (or parse) for nestedhvm=1 in/from xl format. Signed-off-by: Joao Martins Signed-off-by: Wim ten Have --- src/xenconfig

[libvirt] [PATCH v1 1/3] libxl: set nestedhvm when vmx|svm is required

2017-03-08 Thread Wim Ten Have
From: Joao Martins nestedhvm is the option on Xen 4.4+ which enables nested virtualization on Xen. We set this field when one of the following features is included in a host-passthrough CPU element: or: Signed-off-by: Joao Martins Signed-off-by: Wim ten Have --- src/libxl/libxl_conf.c

[libvirt] [PATCH v2 3/3] xlconfigtest: add tests for 'nestedhvm' support

2017-03-24 Thread Wim Ten Have
From: Wim ten Have Testing various configuration schemas targeting postive, negative and undefined nestedhvm under libvirt configuration. Mode "host-passthrough" generates nestedhvm=1 in/from xl format where Intel virtualization (VT-x): or AMD virtualization (AMD-V):

[libvirt] [PATCH v2 1/3] libxl: set nestedhvm for mode host-passthrough

2017-03-24 Thread Wim Ten Have
From: Wim ten Have Xen feature nestedhvm is the option on Xen 4.4+ which enables nested virtualization when mode host-passthrough is applied. Virtualization on target domain can be disabled by specifying such under feature policy rule on target name; [On Intel (VT-x) architecture] or: [On

[libvirt] [PATCH v2 0/3] libxl: nestedhvm support

2017-03-24 Thread Wim Ten Have
From: Wim ten Have This patch enhances host-passthrough capability to advertise the required vendor CPU virtualization feature which will be used to enable 'nestedhvm' in the libxl driver. Wim ten Have (3): libxl: set nestedhvm for mode host-passthrough xenconfig: add conversions

[libvirt] [PATCH v2 2/3] xenconfig: add conversions for xen-xl

2017-03-24 Thread Wim Ten Have
From: Wim ten Have Per xen-xl conversions from and to native under host-passthrough mode we take care for Xen (nestedhvm = mode) applied and inherited settings generating or processing correct feature policy: [On Intel (VT-x) architectures] or [On AMD (AMD-V) architectures] It will then

[libvirt] [PATCH] xenFormatXLDomainDisks: avoid double free on OOM testing

2017-03-27 Thread Wim Ten Have
From: Wim ten Have Fix xlconfigtest runs build for --enable-test-oom on Xen XL-2-XML Parse new-disk #0 0x73bd791f in raise () from /lib64/libc.so.6 #1 0x73bd951a in abort () from /lib64/libc.so.6 #2 0x73c1b200 in __libc_message () from /lib64

[libvirt] [PATCH] xenFormatXLDomainDisks: avoid double free on OOM testing

2017-03-27 Thread Wim Ten Have
From: Wim ten Have This patch fixes a double free that exposed under OOM testing xlconfigtest per DO_TEST("new-disk"); VIR_TEST_OOM=1 VIR_TEST_RANGE=5 ./tests/xlconfigtest Wim ten Have (1): xenFormatXLDomainDisks: avoid double free on OOM testing src/xenconfig/xen

[libvirt] [PATCH] virConfSaveValue: protect against a NULL pointer reference

2017-03-27 Thread Wim Ten Have
From: Wim ten Have Fix xlconfigtest runs build for --enable-test-oom on Xen XL-2-XML Parse channel-pty Program received signal SIGSEGV, Segmentation fault. #0 0x73c2b373 in __strchr_sse2 () from /lib64/libc.so.6 ==> #1 0x77875701 in virConfSaveValue (buf=

[libvirt] [PATCH] virConfSaveValue: protect against a NULL pointer reference

2017-03-27 Thread Wim Ten Have
From: Wim ten Have This patch protects against a NULL pointer dereference leading to a SEGV under xlconfigtest per DO_TEST("channel-pty"); VIR_TEST_OOM=1 VIR_TEST_RANGE=29 ./tests/xlconfigtest Wim ten Have (1): virConfSaveValue: protect against a NULL pointer reference src/util

Re: [libvirt] [PATCH] virConfSaveValue: protect against a NULL pointer reference

2017-04-13 Thread Wim ten Have
On Thu, 13 Apr 2017 11:12:36 -0600 Jim Fehlig wrote: > Wim Ten Have wrote: > > From: Wim ten Have > > Sorry for the delay. I've not had time to work on upstream libvirt activities > recently... Understood. There is one more PATCH out per me. Let me send a remind

Re: [libvirt] [PATCH v2 0/3] libxl: nestedhvm support

2017-04-16 Thread Wim ten Have
-xl % Subject: [PATCH v2 3/3] xlconfigtest: add tests for 'nestedhvm' support Regards, - Wim. On Fri, 24 Mar 2017 22:02:33 +0100 Wim Ten Have wrote: > From: Wim ten Have > > This patch enhances host-passthrough capability to advertise the > required vendor CPU virtua

Re: [libvirt] [PATCH v2 1/3] libxl: set nestedhvm for mode host-passthrough

2017-04-18 Thread Wim ten Have
On Mon, 17 Apr 2017 12:04:53 -0600 Jim Fehlig wrote: > On 03/24/2017 03:02 PM, Wim Ten Have wrote: > > From: Wim ten Have > > > > Xen feature nestedhvm is the option on Xen 4.4+ which enables > > nested virtualization when mode host-passthrough is applied. >

Re: [libvirt] [PATCH v2 2/3] xenconfig: add conversions for xen-xl

2017-04-18 Thread Wim ten Have
On Mon, 17 Apr 2017 14:22:20 -0600 Jim Fehlig wrote: > On 03/24/2017 03:02 PM, Wim Ten Have wrote: > > From: Wim ten Have > > > > Per xen-xl conversions from and to native under host-passthrough > > mode we take care for Xen (nestedhvm = mode) applied and inherited

Re: [libvirt] [PATCH v2 3/3] xlconfigtest: add tests for 'nestedhvm' support

2017-04-18 Thread Wim ten Have
On Mon, 17 Apr 2017 14:25:13 -0600 Jim Fehlig wrote: > On 03/24/2017 03:02 PM, Wim Ten Have wrote: > > From: Wim ten Have > > > > Testing various configuration schemas targeting postive, negative > > and undefined nestedhvm under libvirt > > configuratio

[libvirt] [PATCH v3 0/3] libxl: nestedhvm support

2017-04-19 Thread Wim Ten Have
From: Wim ten Have This patch enhances host-passthrough capability to advertise the required vendor CPU virtualization feature which will be used to enable 'nestedhvm' in the libxl driver. Wim ten Have (3): libxl: set nestedhvm for mode host-passthrough xenconfig: add conversions

[libvirt] [PATCH v3 3/3] xlconfigtest: add tests for 'nestedhvm' support

2017-04-19 Thread Wim Ten Have
From: Wim ten Have Testing various configuration schemas targeting postive and negative nestedhvm under libvirt configuration. Mode "host-passthrough" generates nestedhvm=1 in/from xl format where Intel virtualization (VT-x): or AMD virtualization (AMD-V): disables virt

[libvirt] [PATCH v3 2/3] xenconfig: add conversions for xen-xl

2017-04-19 Thread Wim Ten Have
From: Wim ten Have Per xen-xl conversions from and to native under host-passthrough mode we take care for Xen (nestedhvm = mode) applied and inherited settings generating or processing correct feature policy: [On Intel (VT-x) architectures] or [On AMD (AMD-V) architectures] It will then

[libvirt] [PATCH v3 1/3] libxl: set nestedhvm for mode host-passthrough

2017-04-19 Thread Wim Ten Have
From: Wim ten Have Xen feature nestedhvm is the option on Xen 4.4+ which enables nested virtualization when mode host-passthrough is applied. nested HVM is enabled by adding below on the target domain; Virtualization on target domain can be disabled by specifying such under feature policy

Re: [libvirt] [PATCH v3 1/3] libxl: set nestedhvm for mode host-passthrough

2017-04-20 Thread Wim ten Have
On Thu, 20 Apr 2017 14:28:11 -0600 Jim Fehlig wrote: > Wim Ten Have wrote: > > From: Wim ten Have > > > > Xen feature nestedhvm is the option on Xen 4.4+ which enables > > nested virtualization when mode host-passthrough is applied. > > > > nested HVM i

Re: [libvirt] [PATCH v3 2/3] xenconfig: add conversions for xen-xl

2017-04-23 Thread Wim ten Have
On Thu, 20 Apr 2017 15:40:22 -0600 Jim Fehlig wrote: > Wim Ten Have wrote: > > From: Wim ten Have > > > > Per xen-xl conversions from and to native under host-passthrough > > mode we take care for Xen (nestedhvm = mode) applied and inherited > > settings

[libvirt] [PATCH v4 2/3] xenconfig: add conversions for xen-xl

2017-04-24 Thread Wim Ten Have
From: Wim ten Have Per xen-xl conversions from and to native under host-passthrough mode we take care for Xen (nestedhvm = mode) applied and inherited settings generating or processing correct feature policy: [On Intel (VT-x) architectures] or [On AMD (AMD-V) architectures] It will then

[libvirt] [PATCH v4 0/3] libxl: nestedhvm support

2017-04-24 Thread Wim Ten Have
From: Wim ten Have This patch enhances host-passthrough capability to advertise the required vendor CPU virtualization feature which will be used to enable 'nestedhvm' in the libxl driver. Wim ten Have (3): libxl: set nestedhvm for mode host-passthrough xenconfig: add conversions

[libvirt] [PATCH v4 1/3] libxl: set nestedhvm for mode host-passthrough

2017-04-24 Thread Wim Ten Have
From: Wim ten Have Xen feature nestedhvm is the option on Xen 4.4+ which enables nested virtualization when mode host-passthrough is applied. nested HVM is enabled by adding below on the target domain; Virtualization on target domain can be disabled by specifying such under feature policy

[libvirt] [PATCH v4 3/3] xlconfigtest: add tests for 'nestedhvm' support

2017-04-24 Thread Wim Ten Have
From: Wim ten Have Testing various configuration schemas targeting postive and negative nestedhvm under libvirt configuration. Mode "host-passthrough" generates nestedhvm=1 in/from xl format where Intel virtualization (VT-x): or AMD virtualization (AMD-V): disables virt

[libvirt] [PATCH v1] numa: compute and set matching vcpus for numa domains

2017-07-20 Thread Wim Ten Have
From: Wim ten Have The QEMU driver can erroneously allocate more vpus to a domain than there are cpus in the domain if the element is used to describe element topology. Fix this by calculating the number of cpus described in the element of a element and comparing it to the number of vcpus

[libvirt] [PATCH v1] numa: compute and set matching vcpus for numa domains

2017-07-20 Thread Wim Ten Have
From: Wim ten Have The QEMU driver can erroneously allocate more vpus to a domain than there are cpus in the domain if the element is used to describe element topology. Wim ten Have (1): numa: compute and set matching vcpus for numa domains docs/formatdomain.html.in | 9 - src

Re: [libvirt] [PATCH v1] numa: compute and set matching vcpus for numa domains

2017-07-20 Thread Wim ten Have
On Thu, 20 Jul 2017 11:10:31 +0100 "Daniel P. Berrange" wrote: > On Thu, Jul 20, 2017 at 11:29:26AM +0200, Wim Ten Have wrote: > > From: Wim ten Have > > > > The QEMU driver can erroneously allocate more vpus to a domain > > than there are cpus in the

[libvirt] [PATCH v3 1/4] numa: describe siblings distances within cells

2017-08-31 Thread Wim Ten Have
From: Wim ten Have Add libvirtd NUMA cell domain administration functionality to describe underlying cell id sibling distances in full fashion when configuring HVM guests. [below is an example of a 4 node setup

[libvirt] [PATCH v3 2/4] libxl: vnuma support

2017-08-31 Thread Wim Ten Have
From: Wim ten Have This patch generates a NUMA distance-aware libxl description from the information extracted from a NUMA distance-aware libvirt XML file. By default, if no NUMA node distance information is supplied in the libvirt XML file, this patch uses the distances 10 for local and 21 for

[libvirt] [PATCH v3 0/4] numa: describe sibling nodes distances

2017-08-31 Thread Wim Ten Have
From: Wim ten Have This patch extents guest domain administration adding support to advertise node sibling distances when configuring HVM numa guests. NUMA (non-uniform memory access), a method of configuring a cluster of nodes within a single multiprocessing system such that it shares

[libvirt] [PATCH v3 3/4] xenconfig: add domxml conversions for xen-xl

2017-08-31 Thread Wim Ten Have
From: Wim ten Have This patch converts NUMA configurations between the Xen libxl configuration file format and libvirt's XML format. XML HVM domain configur

[libvirt] [PATCH v3 4/4] xlconfigtest: add tests for numa cell sibling distances

2017-08-31 Thread Wim Ten Have
From: Wim ten Have Test a bidirectional xen-xl domxml to and from native for numa support administration as brought under this patch series. Signed-off-by: Wim ten Have --- .../test-fullvirt-vnuma-nodistances.cfg| 26 +++ .../test-fullvirt-vnuma-nodistances.xml| 53

Re: [libvirt] [PATCH v3 1/4] numa: describe siblings distances within cells

2017-09-01 Thread Wim ten Have
On Thu, 31 Aug 2017 16:36:58 +0200 Martin Kletzander wrote: > On Thu, Aug 31, 2017 at 04:02:38PM +0200, Wim Ten Have wrote: > >From: Wim ten Have > > > I haven't seen the previous versions, so sorry if I point out something > that got changed already. There was a

Re: [libvirt] [PATCH v3 1/4] numa: describe siblings distances within cells

2017-09-04 Thread Wim ten Have
On Mon, 4 Sep 2017 08:49:33 +0200 Martin Kletzander wrote: > On Fri, Sep 01, 2017 at 04:31:50PM +0200, Wim ten Have wrote: > >On Thu, 31 Aug 2017 16:36:58 +0200 > >Martin Kletzander wrote: > > > >> >diff --git a/src/conf/cpu_conf.c b/src/conf/cpu_conf.c &g

Re: [libvirt] [PATCH v3 1/4] numa: describe siblings distances within cells

2017-09-08 Thread Wim ten Have
On Mon, 4 Sep 2017 08:49:33 +0200 Martin Kletzander wrote: > On Fri, Sep 01, 2017 at 04:31:50PM +0200, Wim ten Have wrote: > >On Thu, 31 Aug 2017 16:36:58 +0200 > >Martin Kletzander wrote: > > > >> On Thu, Aug 31, 2017 at 04:02:38PM +0200, Wim Ten Have wro

[libvirt] [PATCH v4 5/5] xlconfigtest: add tests for numa cell sibling distances

2017-09-08 Thread Wim Ten Have
From: Wim ten Have Test a bidirectional xen-xl domxml to and from native for numa support administration as brought under this patch series. Signed-off-by: Wim ten Have --- .../test-fullvirt-vnuma-autocomplete.cfg | 26 +++ .../test-fullvirt-vnuma-autocomplete.xml | 85

[libvirt] [PATCH v4 4/5] libxl: vnuma support

2017-09-08 Thread Wim Ten Have
From: Wim ten Have This patch generates a NUMA distance-aware libxl description from the information extracted from a NUMA distance-aware libvirt XML file. By default, if no NUMA node distance information is supplied in the libvirt XML file, this patch uses the distances 10 for local and 20 for

[libvirt] [PATCH v4 2/5] numa: describe siblings distances within cells

2017-09-08 Thread Wim Ten Have
From: Wim ten Have Add libvirtd NUMA cell domain administration functionality to describe underlying cell id sibling distances in full fashion when configuring HVM guests. Schema updates are made to docs/schemas/cputypes.rng enforcing domain administration to follow the syntax below the numa

[libvirt] [PATCH v4 1/5] numa: rename function virDomainNumaDefCPUFormat

2017-09-08 Thread Wim Ten Have
From: Wim ten Have This patch renames virDomainNumaDefCPUFormat(), by adding XML, into virDomainNumaDefCPUFormatXML(). So that it meets its peer Parse sibling virDomainNumaDefCPUParseXML() and matches vir*XML() function naming conventions. Signed-off-by: Wim ten Have --- Changes on v3

[libvirt] [PATCH v4 0/5] numa: describe sibling nodes distances

2017-09-08 Thread Wim Ten Have
From: Wim ten Have This patch extends guest domain administration adding support to advertise node sibling distances when configuring HVM numa guests. NUMA (non-uniform memory access), a method of configuring a cluster of nodes within a single multiprocessing system such that it shares

[libvirt] [PATCH v4 3/5] xenconfig: add domxml conversions for xen-xl

2017-09-08 Thread Wim Ten Have
From: Wim ten Have This patch converts NUMA configurations between the Xen libxl configuration file format and libvirt's XML format. XML HVM domain configur

[libvirt] [RFC PATCH] build: isolate core libvirt libs deps from xen runtime

2017-10-05 Thread Wim Ten Have
From: Wim ten Have Generating libvirt packages per make rpm, "with_libxl=1" and "with_xen=1", adds strict runtime dependencies per libxenlight for xen-libs package from core libvirt-libs package. This is not necessary and unfortunate since those dependencies set demand t

[libvirt] [PATCH v1] build: isolate core libvirt libs deps from xen runtime

2017-10-06 Thread Wim Ten Have
From: Wim ten Have Generating libvirt packages per make rpm, "with-libxl=1" and "with-xen=1", adds strict runtime dependencies per libxenlight for xen-libs package from core libvirt-libs package. This is not necessary and unfortunate since those dependencies set demand t

Re: [libvirt] [PATCH v4 2/5] numa: describe siblings distances within cells

2017-10-12 Thread Wim ten Have
On Fri, 6 Oct 2017 08:49:46 -0600 Jim Fehlig wrote: > On 09/08/2017 08:47 AM, Wim Ten Have wrote: > > From: Wim ten Have > > > > Add libvirtd NUMA cell domain administration functionality to > > describe underlying cell id sibling distances in full fashion >

[libvirt] [PATCH v5 0/4] numa: describe sibling nodes distances

2017-10-12 Thread Wim Ten Have
From: Wim ten Have This patch extends guest domain administration adding support to advertise node sibling distances when configuring NUMA guests also referred to as vNUMA (Virtual NUMA). NUMA (Non-Uniform Memory Access), a method of configuring a cluster of nodes within a single

[libvirt] [PATCH v5 2/4] xenconfig: add domxml conversions for xen-xl

2017-10-12 Thread Wim Ten Have
From: Wim ten Have This patch converts NUMA configurations between the Xen libxl configuration file format and libvirt's XML format. XML HVM domain on a 4 node (2 cores/socket) configur

[libvirt] [PATCH v5 3/4] libxl: vnuma support

2017-10-12 Thread Wim Ten Have
From: Wim ten Have This patch generates a NUMA distance-aware libxl description from the information extracted from a NUMA distance-aware libvirt XML file. By default, if no NUMA node distance information is supplied in the libvirt XML file, this patch uses the distances 10 for local and 20 for

[libvirt] [PATCH v5 1/4] numa: describe siblings distances within cells

2017-10-12 Thread Wim Ten Have
From: Wim ten Have Add support for describing NUMA distances in a domain's XML description. Below is an example of a 4 node

[libvirt] [PATCH v5 4/4] xlconfigtest: add tests for numa cell sibling distances

2017-10-12 Thread Wim Ten Have
From: Wim ten Have Test a bidirectional xen-xl domxml to and from native for numa support administration as brought under this patch series. Signed-off-by: Wim ten Have --- .../test-fullvirt-vnuma-autocomplete.cfg | 26 +++ .../test-fullvirt-vnuma-autocomplete.xml | 85

[libvirt] [PATCH libvirt sparse files under format=qcow2 v1 0/2] Problem: libvirt fails to create fully allocated qcow2 storage objects.

2018-03-29 Thread Wim Ten Have
From: Wim ten Have When virt-install requests to create fully allocated storage object when the parameter sparse=no is set, libvirt doesn't allow that to happen for qcow2 formatted files. Regardless of its XML instuction request libvirt always targets its filesystem object storage

[libvirt] [PATCH libvirt sparse files under format=qcow2 v1 2/2] Adjust qemu-img test required to target with preallocation=falloc.

2018-03-29 Thread Wim Ten Have
From: Wim ten Have Signed-off-by: Wim ten Have --- tests/storagevolxml2argvdata/qcow2-nocapacity-convert-prealloc.argv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/storagevolxml2argvdata/qcow2-nocapacity-convert-prealloc.argv b/tests/storagevolxml2argvdata/qcow2

[libvirt] [PATCH libvirt sparse files under format=qcow2 v1 1/2] libvirt can't create fully allocated qcow2 formatted storage objects.

2018-03-29 Thread Wim Ten Have
From: Wim ten Have This patch adds support to qcow2 formatted storage objects by instructing qemu-img to build them with preallocation=falloc whenever the XML described storage matches its . For all other cases the objects are built with preallocation=metadata. Signed-off-by: Wim ten Have

  1   2   >