Re: [libvirt] [PATCH 2/2] test: Don't assume a configFile exists for Storage Pool tests

2017-03-15 Thread Laine Stump
On 03/15/2017 03:27 PM, John Ferlan wrote: > Fix a "bug" in the storage pool test driver code which "assumed" > testStoragePoolObjSetDefaults should fill in the configFile for > both the Define/Create (persistent) and CreateXML (transient) pools > by just VIR_FREE()'ing it during CreateXML.

Re: [libvirt] [PATCH 1/2] conf: Alter error message for vHBA creation using parent wwnn/wwpn

2017-03-15 Thread Laine Stump
On 03/15/2017 03:27 PM, John Ferlan wrote: > Commit id 'bb74a7ffe' added a fairly non specific message when providing > only the or instead of providing > both wwnn and wwpn. This patch just modifies the message to be more specific > about which was missing. > > Signed-off-by: John Ferlan

Re: [libvirt] [PATCH v3 14/18] conf: Convert virStoragePoolSourceAdapter to virStorageAdapter

2017-03-15 Thread Laine Stump
On 03/15/2017 01:59 PM, John Ferlan wrote: > [...] > >>> >>> 4. Using virPCIDeviceAddressPtr in getSCSIHostNumber and getAdapterName. >>> Ironically the "original" series I had passed along the >>> virStorageAdapterSCSIHostPtr, but since it's been decreed that a >>> src/util function cannot

Re: [libvirt] [PATCH 4/4] news: Document support for generic PCIe Root Ports

2017-03-15 Thread Laine Stump
On 03/14/2017 12:58 PM, Andrea Bolognani wrote: > --- > docs/news.xml | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/docs/news.xml b/docs/news.xml > index 04783aa..434a9f7 100644 > --- a/docs/news.xml > +++ b/docs/news.xml > @@ -17,6 +17,15 @@ >The

Re: [libvirt] [PATCH 3/4] tests: Test generic PCIe Root Ports

2017-03-15 Thread Laine Stump
On 03/14/2017 12:58 PM, Andrea Bolognani wrote: > We want pcie-root-ports to be used for aarch64/virt guests > when available in QEMU, but at the same time we need to > ensure that other machine type and hosts where QEMU releases > lacking the new device type are not affected. > --- >

[libvirt] limit cpu speed in domain xml

2017-03-15 Thread Vasiliy Tolstov
Hi. Does it possible to limit vm cpu speed for example to 1Ghz or 500Mhz ? I need to simulate some hardware with specific cpu speed and test my application inside this vm , i want to measure results from each test and need constant cpu speed for testing (i need to run test not only my notebook but

Re: [libvirt] [PATCH resend V10 03/12] Resctrl: Add new xml element to support cache tune

2017-03-15 Thread Martin Kletzander
On Wed, Mar 15, 2017 at 02:11:23PM -0300, Marcelo Tosatti wrote: On Wed, Mar 15, 2017 at 03:59:31PM +0100, Martin Kletzander wrote: On Wed, Mar 15, 2017 at 02:23:26PM +, Daniel P. Berrange wrote: >On Wed, Mar 15, 2017 at 03:11:26PM +0100, Martin Kletzander wrote: >>On Mon, Mar 06, 2017 at

Re: [libvirt] [PATCH 2/4] qemu: Use generic PCIe Root Ports by default for aarch64/virt

2017-03-15 Thread Laine Stump
On 03/14/2017 12:58 PM, Andrea Bolognani wrote: > ioh3420 is emulated Intel hardware, so it always looked > quite out of place in aarch64/virt guests. > > If pcie-root-port is available in QEMU, use that device > instead. > --- > It was mentioned somewhere, at some point, that we might > want to

[libvirt] [PATCH 2/2] test: Don't assume a configFile exists for Storage Pool tests

2017-03-15 Thread John Ferlan
Fix a "bug" in the storage pool test driver code which "assumed" testStoragePoolObjSetDefaults should fill in the configFile for both the Define/Create (persistent) and CreateXML (transient) pools by just VIR_FREE()'ing it during CreateXML. Because the configFile was filled in, during Destroy the

[libvirt] [PATCH 1/2] conf: Alter error message for vHBA creation using parent wwnn/wwpn

2017-03-15 Thread John Ferlan
Commit id 'bb74a7ffe' added a fairly non specific message when providing only the or instead of providing both wwnn and wwpn. This patch just modifies the message to be more specific about which was missing. Signed-off-by: John Ferlan --- src/conf/node_device_conf.c | 17

[libvirt] [PATCH 0/2] Fix nodedev error message and test driver logic

2017-03-15 Thread John Ferlan
The first patch is related to review comments from my Converge Storage Pool vHBA logic Patch1 w/r/t a weak error message The second patch is pulled from Patch17 of that series and is just an adjustment in the storage pool create xml logic Neither of these require news.xml updates... John Ferlan

Re: [libvirt] [PATCH 1/4] qemu: Add support for generic PCIe Root Ports

2017-03-15 Thread Laine Stump
On 03/14/2017 12:58 PM, Andrea Bolognani wrote: > QEMU 2.9 introduces the pcie-root-port device, which is > a generic version of the existing ioh3420 device. > > Make the new device available to libvirt users. > > Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1408808 Yes, but kind of

Re: [libvirt] [PATCH] Increase default file handle limits for daemons

2017-03-15 Thread Guido Günther
Hi, On Wed, Mar 15, 2017 at 04:55:04PM +, Daniel P. Berrange wrote: > Linux still defaults to a 1024 open file handle limit. This causes > scalability problems for libvirtd / virtlockd / virtlogd on large > hosts which might want > 1024 guest to be running. In fact if each > guest needs > 1

Re: [libvirt] [PATCH v3 17/18] util: Alter virNodeDevice{Create|Delete}Vport to use nodedev APIs

2017-03-15 Thread John Ferlan
On 03/15/2017 10:46 AM, Daniel P. Berrange wrote: > On Fri, Mar 10, 2017 at 04:10:49PM -0500, John Ferlan wrote: >> If we have a connection pointer there's no sense walking through the >> sysfs in order to create/destroy the vHBA. Instead, let's make use of >> the node device create/destroy

Re: [libvirt] [PATCH v3 16/18] conf: Move/rename createVport and deleteVport

2017-03-15 Thread John Ferlan
On 03/15/2017 11:19 AM, Laine Stump wrote: > On 03/15/2017 10:08 AM, John Ferlan wrote: >> >> >> On 03/12/2017 06:35 PM, Laine Stump wrote: >>> On 03/10/2017 04:10 PM, John Ferlan wrote: Move the bulk of the code to the node_device_conf and rename to virNodeDevice{Create|Delete}Vport.

Re: [libvirt] Failure to probe cpu definitions for e.g. qemu-system-mips

2017-03-15 Thread Daniel P. Berrange
On Wed, Mar 15, 2017 at 06:48:56PM +0100, Guido Günther wrote: > Hi, > while looking into a regression failing to start any mips qemu systems > (http://bugs.debian.org/854125) I noticed that querying cpu definition > does not work for lots of non intel architectures like mips due to lack > of

[libvirt] [PATCH] Short circuit SASL auth when no mechanisms are available

2017-03-15 Thread Daniel P. Berrange
If the SASL config does not have any mechanisms we currently just report an empty list to the client which will then fail to identify a usable mechanism. This is a server config error, so we should fail immediately on the server side. Signed-off-by: Daniel P. Berrange ---

[libvirt] [PATCH] Report what TLS priority string we use for a session

2017-03-15 Thread Daniel P. Berrange
Signed-off-by: Daniel P. Berrange --- src/rpc/virnettlscontext.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rpc/virnettlscontext.c b/src/rpc/virnettlscontext.c index 847d457..0d5928e 100644 --- a/src/rpc/virnettlscontext.c +++ b/src/rpc/virnettlscontext.c @@

[libvirt] [PATCH] Sanity check explicit TLS file paths

2017-03-15 Thread Daniel P. Berrange
When providing explicit x509 cert/key paths in libvirtd.conf, the user must provide all three. If one or more is missed, this leads to obscure errors at runtime when negotiating the TLS session Signed-off-by: Daniel P. Berrange --- daemon/libvirtd.c | 16 1

Re: [libvirt] [PATCH v3 14/18] conf: Convert virStoragePoolSourceAdapter to virStorageAdapter

2017-03-15 Thread John Ferlan
[...] >> >> 4. Using virPCIDeviceAddressPtr in getSCSIHostNumber and getAdapterName. >> Ironically the "original" series I had passed along the >> virStorageAdapterSCSIHostPtr, but since it's been decreed that a >> src/util function cannot include a src/conf header, I had to back that off. > >

[libvirt] Failure to probe cpu definitions for e.g. qemu-system-mips

2017-03-15 Thread Guido Günther
Hi, while looking into a regression failing to start any mips qemu systems (http://bugs.debian.org/854125) I noticed that querying cpu definition does not work for lots of non intel architectures like mips due to lack of support for the query-cpu-definition monitor command: 2017-03-15

Re: [libvirt] [PATCH] Increase default file handle limits for daemons

2017-03-15 Thread Laine Stump
On 03/15/2017 12:55 PM, Daniel P. Berrange wrote: > Linux still defaults to a 1024 open file handle limit. This causes > scalability problems for libvirtd / virtlockd / virtlogd on large > hosts which might want > 1024 guest to be running. In fact if each > guest needs > 1 FD, we can't even get to

Re: [libvirt] [PATCH resend V10 03/12] Resctrl: Add new xml element to support cache tune

2017-03-15 Thread Marcelo Tosatti
On Wed, Mar 15, 2017 at 03:59:31PM +0100, Martin Kletzander wrote: > On Wed, Mar 15, 2017 at 02:23:26PM +, Daniel P. Berrange wrote: > >On Wed, Mar 15, 2017 at 03:11:26PM +0100, Martin Kletzander wrote: > >>On Mon, Mar 06, 2017 at 06:06:32PM +0800, Eli Qiao wrote: > >>> This patch adds new xml

[libvirt] [PATCH] Increase default file handle limits for daemons

2017-03-15 Thread Daniel P. Berrange
Linux still defaults to a 1024 open file handle limit. This causes scalability problems for libvirtd / virtlockd / virtlogd on large hosts which might want > 1024 guest to be running. In fact if each guest needs > 1 FD, we can't even get to 500 guests. This is not good enough when we see machines

[libvirt] [PATCH 21/19] util: log all setting of MAC addresses and vlan tags

2017-03-15 Thread Laine Stump
Having this information available will make it easier to determine the culprit when MAC or vlan tag appear to not be set, eg.: https://bugzilla.redhat.com/1364073 (This patch doesn't fix that bug, just makes it easier to diagnose) --- src/util/virnetdev.c | 17 ++--- 1 file

[libvirt] [PATCH 20/19] util: rename virHostdevNetConfigRestore() to virHostdevRestoreNetConfig()

2017-03-15 Thread Laine Stump
For consistency with the new virHostdevSaveNetConfig() and virHostdevSetNetConfig(). --- src/util/virhostdev.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/virhostdev.c b/src/util/virhostdev.c index a402c01..dce0bbe 100644 --- a/src/util/virhostdev.c +++

Re: [libvirt] [PATCH 00/12] qemu: Enforce guest CPU specification

2017-03-15 Thread Ján Tomko
On Tue, Mar 14, 2017 at 05:57:39PM +0100, Jiri Denemark wrote: When starting a domain with custom guest CPU specification QEMU may add or remove some CPU features. There are several reasons for this, e.g., QEMU/KVM does not support some requested features or the definition of the requested CPU

[libvirt] [PATCH 13/23] qemu: implement qemuDomainSetBlockThreshold

2017-03-15 Thread Peter Krempa
Add code to call the appropriate monitor command and code to lookup the given disk backing chain member. --- src/qemu/qemu_driver.c | 70 src/qemu/qemu_monitor.c | 13 src/qemu/qemu_monitor.h | 5

Re: [libvirt] [PATCH 05/12] qemu: Refactor Hyper-V features check

2017-03-15 Thread Ján Tomko
On Tue, Mar 14, 2017 at 05:57:44PM +0100, Jiri Denemark wrote: The checks are now in a dedicated qemuProcessVerifyHypervFeatures function. Signed-off-by: Jiri Denemark --- src/qemu/qemu_process.c | 88 ++--- 1 file changed, 55

[libvirt] [PATCH 01/23] qemu: driver: Don't call qemuDomainDetermineDiskChain on block jobs

2017-03-15 Thread Peter Krempa
Our code calls it when starting or re-starting the domain or when hotplugging the disk so there's nothing to be detected. --- src/qemu/qemu_driver.c | 5 - 1 file changed, 5 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 2032fac71..06bd442ee 100644 ---

[libvirt] [PATCH 18/23] tests: qemumonitorjson: Add long backing chain test case for node name detection

2017-03-15 Thread Peter Krempa
--- .../qemumonitorjson-nodename-2.json| 2270 .../qemumonitorjson-nodename-2.result | 60 + tests/qemumonitorjsontest.c|1 + 3 files changed, 2331 insertions(+) create mode 100644

[libvirt] [PATCH 17/23] tests: qemumonitorjson: Add test case for node name detection code

2017-03-15 Thread Peter Krempa
The code is rather magic so a test case will help making sure that everything works well. The first case is a simple backing chain. --- .../qemumonitorjson-nodename-1.json| 268 + .../qemumonitorjson-nodename-1.result | 15 ++

[libvirt] [PATCH 22/23] qemu: monitor: Extract the top level format node when querying disks

2017-03-15 Thread Peter Krempa
To allow matching the node names gathered via 'query-named-block-nodes' we need to query and then use the top level nodes from 'query-block'. Add the data to the structure returned by qemuMonitorGetBlockInfo. --- src/qemu/qemu_domain.h | 1 + src/qemu/qemu_monitor.c | 12 +++-

[libvirt] [PATCH 23/23] qemu: block: Add code to detect node names when necessary

2017-03-15 Thread Peter Krempa
Detect the node names when setting block threshold and when reconnecting or when they are cleared when a block job finishes. This operation will become a no-op once we fully support node names. --- src/qemu/qemu_block.c| 98

[libvirt] [PATCH 00/23] Add block write threshold event

2017-03-15 Thread Peter Krempa
This is another version of the stuff that I've posted here: https://www.redhat.com/archives/libvir-list/2017-February/msg01391.html which was partially based on the very old discussion at https://www.redhat.com/archives/libvir-list/2015-May/msg00580.html This version fixes some of the review

[libvirt] [PATCH 10/23] lib: Add API for setting the threshold size for VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD

2017-03-15 Thread Peter Krempa
The new API can be used to configure the threshold when VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD should be fired. --- include/libvirt/libvirt-domain.h | 5 src/driver-hypervisor.h | 8 +++ src/libvirt-domain.c | 51

[libvirt] [PATCH 05/23] lib: Introduce event for tracking disk backing file write threshold

2017-03-15 Thread Peter Krempa
When using thin provisioning, management tools need to resize the disk in certain cases. To avoid having them to poll disk usage introduce an event which will be fired when a given offset of the storage is written by the hypervisor. Together with the API which will be added later, it will allow

[libvirt] [PATCH 11/23] virsh: Implement 'domblkthreshold' command to call virDomainSetBlockThreshold

2017-03-15 Thread Peter Krempa
Add a simple wrapper which will allow to set the threshold for delivering the event. --- tools/virsh-domain.c | 64 tools/virsh.pod | 8 +++ 2 files changed, 72 insertions(+) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c

[libvirt] [PATCH 14/23] qemu: capabilities: add capability for query-named-block-nodes qmp cmd

2017-03-15 Thread Peter Krempa
--- src/qemu/qemu_capabilities.c| 2 ++ src/qemu/qemu_capabilities.h| 1 + tests/qemucapabilitiesdata/caps_2.1.1.x86_64.xml| 1 + tests/qemucapabilitiesdata/caps_2.4.0.x86_64.xml| 1 +

[libvirt] [PATCH 07/23] qemu: domain: Add helper to lookup disk by node name

2017-03-15 Thread Peter Krempa
Looks up a disk and it's corresponding backing chain element by node name. --- src/qemu/qemu_domain.c | 43 +++ src/qemu/qemu_domain.h | 6 ++ 2 files changed, 49 insertions(+) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index

[libvirt] [PATCH 09/23] qemu: process: Wire up firing of the VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD event

2017-03-15 Thread Peter Krempa
Bind it to qemus BLOCK_WRITE_THRESHOLD event. Look up the disk by nodename and construct the string to return. --- src/qemu/qemu_process.c | 40 1 file changed, 40 insertions(+) diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index

[libvirt] [PATCH 15/23] qemu: monitor: Add monitor infrastructure for query-named-block-nodes

2017-03-15 Thread Peter Krempa
Add monitor tooling for calling query-named-block-nodes. The monitor returns the data as the raw JSON array that is returned from the monitor. Unfortunately the logic to extract the node names for a complete backing chain will be so complex that I won't be able to extract any meaningful subset of

[libvirt] [PATCH 06/23] qemu: monitor: Add support for BLOCK_WRITE_THRESHOLD event

2017-03-15 Thread Peter Krempa
The event is fired when a given block backend node (identified by the node name) experiences a write beyond the bound set via block-set-write-threshold QMP command. This wires up the monitor code to extract the data and allow us receiving the events and the capability. ---

[libvirt] [PATCH 16/23] qemu: block: Add code to allow detection of auto-allocated node names

2017-03-15 Thread Peter Krempa
qemu for some time already sets node names automatically for the block nodes. This patch adds code that attempts a best-effort detection of the node names for the backing chain from the output of 'query-named-block-nodes'. The only drawback is that the data provided by qemu needs to be matched by

[libvirt] [PATCH 12/23] qemu: domain: Add helper to look up disk soruce by the backing store string

2017-03-15 Thread Peter Krempa
--- src/qemu/qemu_domain.c | 37 + src/qemu/qemu_domain.h | 3 +++ 2 files changed, 40 insertions(+) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 0c633af33..402b0730e 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@

[libvirt] [PATCH 20/23] tests: qemumonitorjson: Add relative image names for node name detection

2017-03-15 Thread Peter Krempa
oVirt uses relative names with directories in them. Test such configuration. Also tests a snapshot done with _REUSE_EXTERNAL and a relative backing file pre-specified in the qcow2 metadata. --- .../qemumonitorjson-nodename-relative.json | 554 +

[libvirt] [PATCH 04/23] util: storage: Add variables for node names into virStorageSource

2017-03-15 Thread Peter Krempa
'nodeformat' should be used for strings which describe the storage format object, and 'nodebacking' for the actual storage object itself. --- src/libvirt_private.syms | 1 + src/util/virstoragefile.c | 40 src/util/virstoragefile.h | 10 ++ 3

[libvirt] [PATCH 21/23] tests: qemumonitorjson: Test node name detection on networked storage

2017-03-15 Thread Peter Krempa
--- .../qemumonitorjson-nodename-gluster.json | 135 + .../qemumonitorjson-nodename-gluster.result| 10 ++ tests/qemumonitorjsontest.c| 1 + 3 files changed, 146 insertions(+) create mode 100644

[libvirt] [PATCH 19/23] tests: qemumonitorjson: Add case for two disks sharing a backing image

2017-03-15 Thread Peter Krempa
Since we have to match the images by filename a common backing image will break the detection process. Add a test case to see that the code correctly did not continue the detection process. --- .../qemumonitorjson-nodename-same-backing.json | 316 +

[libvirt] [PATCH 08/23] qemu: domain: Add helper to generate indexed backing store names

2017-03-15 Thread Peter Krempa
The code is currently simple, but if we later add node names, it will be necessary to generate the names based on the node name. Add a helper so that there's a central point to fix once we add self-generated node names. --- src/qemu/qemu_domain.c | 22 ++

[libvirt] [PATCH 03/23] util: storage: Split out useful bits of virStorageFileParseChainIndex

2017-03-15 Thread Peter Krempa
The function has very specific semantics. Split out the part that parses the backing store specification string into a separate helper so that it can be reused later while keeping the wrapper with existing semantics. Note that virStorageFileParseChainIndex is pretty well covered by the test

[libvirt] [PATCH 02/23] util: buffer: Add API to set indentation level to a given value

2017-03-15 Thread Peter Krempa
It will be useful to set indentation level to 0 after formatting a nested structure rather than having to track the depth. --- src/libvirt_private.syms | 1 + src/util/virbuffer.c | 19 +++ src/util/virbuffer.h | 2 ++ 3 files changed, 22 insertions(+) diff --git

Re: [libvirt] [PATCH 03/12] Introduce /domain/cpu/@check XML attribute

2017-03-15 Thread Ján Tomko
On Tue, Mar 14, 2017 at 05:57:42PM +0100, Jiri Denemark wrote: The attribute can be used to request a specific way of checking whether the virtual CPU matches created by the hypervisor matches the specification in domain XML. Signed-off-by: Jiri Denemark ---

Re: [libvirt] [PATCH v3 07/17] qemu: Implement NVDIMM

2017-03-15 Thread Michal Privoznik
On 03/14/2017 02:36 PM, John Ferlan wrote: > > > On 03/09/2017 11:06 AM, Michal Privoznik wrote: >> So, majority of the code is just ready as-is. Well, with one >> slight change: differentiate between dimm and nvdimm in places >> like device alias generation, generating the command line and so

Re: [libvirt] [PATCH v3 15/17] qemu_hotplug: Relabel memdev

2017-03-15 Thread Michal Privoznik
On 03/14/2017 03:58 PM, John Ferlan wrote: > > > On 03/09/2017 11:06 AM, Michal Privoznik wrote: >> Now that we have APIs for relabel memdevs on hotplug, fill in the >> missing implementation in qemu hotplug code. >> >> The qemuSecurity wrappers might look like overkill for now, >> because qemu

Re: [libvirt] [PATCH v3 17/18] util: Alter virNodeDevice{Create|Delete}Vport to use nodedev APIs

2017-03-15 Thread Laine Stump
On 03/15/2017 10:22 AM, John Ferlan wrote: > > > On 03/12/2017 09:20 PM, Laine Stump wrote: >> On 03/10/2017 04:10 PM, John Ferlan wrote: >>> If we have a connection pointer there's no sense walking through the >>> sysfs in order to create/destroy the vHBA. Instead, let's make use of >>> the

Re: [libvirt] [PATCH v3 16/18] conf: Move/rename createVport and deleteVport

2017-03-15 Thread Laine Stump
On 03/15/2017 10:08 AM, John Ferlan wrote: > > > On 03/12/2017 06:35 PM, Laine Stump wrote: >> On 03/10/2017 04:10 PM, John Ferlan wrote: >>> Move the bulk of the code to the node_device_conf and rename to >>> virNodeDevice{Create|Delete}Vport. >>> >>> Alter the create algorithm slightly in

Re: [libvirt] [PATCH v3 14/18] conf: Convert virStoragePoolSourceAdapter to virStorageAdapter

2017-03-15 Thread Laine Stump
On 03/15/2017 09:33 AM, John Ferlan wrote: > > > On 03/12/2017 05:53 PM, Laine Stump wrote: >> On 03/10/2017 04:10 PM, John Ferlan wrote: >>> Move the virStoragePoolSourceAdapter from storage_conf.h and rename >>> to virStorageAdapter. >>> >>> Continue with code realignment for brevity and flow.

Re: [libvirt] [PATCH resend V10 04/12] Resctrl: Add private interfaces to operate cache bank

2017-03-15 Thread Martin Kletzander
On Mon, Mar 06, 2017 at 06:06:33PM +0800, Eli Qiao wrote: virResCtrlSetCacheBanks: Set cache banks of a libvirt domain. It will create new resource domain under `/sys/fs/resctrl` and fill the schemata according the cache

Re: [libvirt] [PATCH resend V10 03/12] Resctrl: Add new xml element to support cache tune

2017-03-15 Thread Martin Kletzander
On Wed, Mar 15, 2017 at 02:23:26PM +, Daniel P. Berrange wrote: On Wed, Mar 15, 2017 at 03:11:26PM +0100, Martin Kletzander wrote: On Mon, Mar 06, 2017 at 06:06:32PM +0800, Eli Qiao wrote: > This patch adds new xml element to support cache tune as: > > > ... > I tend to view use of

Re: [libvirt] [PATCH 3/2] docs: Document adaptive timeout for qemu monitor

2017-03-15 Thread Martin Kletzander
On Wed, Mar 15, 2017 at 03:40:04PM +0100, Andrea Bolognani wrote: On Wed, 2017-03-15 at 14:10 +0100, Martin Kletzander wrote: I'll take the opportunity to repeat here what I said in another news-related thread.   The good thing about the new news file layout is that we can express freely what

Re: [libvirt] [PATCH 3/2] docs: Document adaptive timeout for qemu monitor

2017-03-15 Thread Andrea Bolognani
On Wed, 2017-03-15 at 14:10 +0100, Martin Kletzander wrote: I would s/Adaptive/Use adaptive/ though. Oh, and it should be "QEMU" rather than "qemu" in the description ;) --  Andrea Bolognani / Red Hat / Virtualization -- libvir-list mailing list libvir-list@redhat.com

[libvirt] [PATCH v2 5/5] network: check accept_ra before enabling ipv6 forwarding

2017-03-15 Thread Cédric Bosdonnat
When enabling IPv6 on all interfaces, we may get the host Router Advertisement routes discarded. To avoid this, the user needs to set accept_ra to 2 for the interfaces with such routes. See https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt on this topic. To avoid user mistakenly

[libvirt] [PATCH v2 0/5] Prevent losing IPv6 routes due to forwarding

2017-03-15 Thread Cédric Bosdonnat
Hi Laine, all, Here is the v2 of my series. The changes are: * Add a commit to create a virNetDevGetName() function * Fix Laine's comments Cédric Bosdonnat (5): util: extract the request sending code from virNetlinkCommand() util: add virNetlinkDumpCommand() bridge_driver.c: more uses

[libvirt] [PATCH v2 2/5] util: add virNetlinkDumpCommand()

2017-03-15 Thread Cédric Bosdonnat
virNetlinkCommand() processes only one response message, while some netlink commands like routes dumping need to process several ones. Add virNetlinkDumpCommand() as a virNetlinkCommand() sister. --- src/libvirt_private.syms | 1 + src/util/virnetlink.c| 58

[libvirt] [PATCH v2 1/5] util: extract the request sending code from virNetlinkCommand()

2017-03-15 Thread Cédric Bosdonnat
Allow to reuse as much as possible from virNetlinkCommand(). This comment prepares for the introduction of virNetlindDumpCommand() only differing by how it handles the responses. --- src/util/virnetlink.c | 89 +++ 1 file changed, 54 insertions(+),

[libvirt] [PATCH v2 4/5] util: add virNetDevGetName() function

2017-03-15 Thread Cédric Bosdonnat
Add a function getting the name of a network interface out of its index. --- src/libvirt_private.syms | 1 + src/util/virnetdev.c | 19 +++ src/util/virnetdev.h | 2 ++ 3 files changed, 22 insertions(+) diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms

[libvirt] [PATCH v2 3/5] bridge_driver.c: more uses of SYSCTL_PATH

2017-03-15 Thread Cédric Bosdonnat
Replace a few occurences of /proc/sys by the corresponding macro defined a few lines after: SYSCTL_PATH --- src/network/bridge_driver.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c index c5ec2823d..3f6561055

Re: [libvirt] [PATCH v3 17/18] util: Alter virNodeDevice{Create|Delete}Vport to use nodedev APIs

2017-03-15 Thread Daniel P. Berrange
On Fri, Mar 10, 2017 at 04:10:49PM -0500, John Ferlan wrote: > If we have a connection pointer there's no sense walking through the > sysfs in order to create/destroy the vHBA. Instead, let's make use of > the node device create/destroy API's. In general we should *not* call out to the public API

Re: [libvirt] [PATCH 3/2] docs: Document adaptive timeout for qemu monitor

2017-03-15 Thread Andrea Bolognani
On Wed, 2017-03-15 at 14:10 +0100, Martin Kletzander wrote: > I'll take the opportunity to repeat here what I said in another > news-related thread. >  > The good thing about the new news file layout is that we can express > freely what is the feature that was added and we don't have to >

Re: [libvirt] [PATCH resend V10 03/12] Resctrl: Add new xml element to support cache tune

2017-03-15 Thread Daniel P. Berrange
On Wed, Mar 15, 2017 at 03:11:26PM +0100, Martin Kletzander wrote: > On Mon, Mar 06, 2017 at 06:06:32PM +0800, Eli Qiao wrote: > > This patch adds new xml element to support cache tune as: > > > > > > ... > > > Again, this was already discussed, probably, I just can't find the > source of

Re: [libvirt] [PATCH 2/2] qemu: Adaptive timeout for connecting to monitor

2017-03-15 Thread Jim Fehlig
Michal Privoznik wrote: > On 03/15/2017 02:16 AM, Jim Fehlig wrote: >> On 03/13/2017 06:29 AM, Michal Privoznik wrote: >>> There were couple of reports on the list (e.g. [1]) that guests >>> with huge amounts of RAM are unable to start because libvirt >>> kills qemu in the initialization phase.

Re: [libvirt] [PATCH v3 17/18] util: Alter virNodeDevice{Create|Delete}Vport to use nodedev APIs

2017-03-15 Thread John Ferlan
On 03/12/2017 09:20 PM, Laine Stump wrote: > On 03/10/2017 04:10 PM, John Ferlan wrote: >> If we have a connection pointer there's no sense walking through the >> sysfs in order to create/destroy the vHBA. Instead, let's make use of >> the node device create/destroy API's. >> >> Since we don't

Re: [libvirt] [PATCH resend V10 03/12] Resctrl: Add new xml element to support cache tune

2017-03-15 Thread Martin Kletzander
On Mon, Mar 06, 2017 at 06:06:32PM +0800, Eli Qiao wrote: This patch adds new xml element to support cache tune as: ... Again, this was already discussed, probably, I just can't find the source of it. But host_id actually already selects what cache is supposed to be used, so instead of

Re: [libvirt] [PATCH v3 16/18] conf: Move/rename createVport and deleteVport

2017-03-15 Thread John Ferlan
On 03/12/2017 06:35 PM, Laine Stump wrote: > On 03/10/2017 04:10 PM, John Ferlan wrote: >> Move the bulk of the code to the node_device_conf and rename to >> virNodeDevice{Create|Delete}Vport. >> >> Alter the create algorithm slightly in order to return the name of >> the scsi_host vHBA that was

Re: [libvirt] [PATCH v3 14/18] conf: Convert virStoragePoolSourceAdapter to virStorageAdapter

2017-03-15 Thread John Ferlan
On 03/12/2017 05:53 PM, Laine Stump wrote: > On 03/10/2017 04:10 PM, John Ferlan wrote: >> Move the virStoragePoolSourceAdapter from storage_conf.h and rename >> to virStorageAdapter. >> >> Continue with code realignment for brevity and flow. >> >> Signed-off-by: John Ferlan

Re: [libvirt] [PATCH 3/2] docs: Document adaptive timeout for qemu monitor

2017-03-15 Thread Martin Kletzander
On Wed, Mar 15, 2017 at 01:06:12PM +0100, Michal Privoznik wrote: Signed-off-by: Michal Privoznik --- docs/news.xml | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/news.xml b/docs/news.xml index 04783aa5e..6ce6ab362 100644 ---

Re: [libvirt] [PATCH resend V10 02/12] Resctrl: expose cache information to capabilities

2017-03-15 Thread Martin Kletzander
On Mon, Mar 06, 2017 at 06:06:31PM +0800, Eli Qiao wrote: This patch expose cache information to host's capabilites xml. For l3 cache allocation For l3 cache allocation supported cdp(seperate data/code): I know this was discussed before, but why having a vector

Re: [libvirt] [PATCH resend V10 01/12] Resctrl: Add some utils functions

2017-03-15 Thread Martin Kletzander
On Mon, Mar 06, 2017 at 06:06:30PM +0800, Eli Qiao wrote: This patch adds some utils struct and functions to expose resctrl information. virResCtrlAvailable: if resctrl interface exist on host. virResCtrlGet: get specific type resource control information. virResCtrlInit: initialize resctrl

[libvirt] [PATCH 3/2] docs: Document adaptive timeout for qemu monitor

2017-03-15 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- docs/news.xml | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/news.xml b/docs/news.xml index 04783aa5e..6ce6ab362 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -43,7 +43,20 @@

Re: [libvirt] [PATCH resend V10 01/12] Resctrl: Add some utils functions

2017-03-15 Thread Martin Kletzander
On Mon, Mar 06, 2017 at 06:06:30PM +0800, Eli Qiao wrote: This patch adds some utils struct and functions to expose resctrl information. virResCtrlAvailable: if resctrl interface exist on host. virResCtrlGet: get specific type resource control information. virResCtrlInit: initialize resctrl

Re: [libvirt] [PATCH 2/2] qemu: Adaptive timeout for connecting to monitor

2017-03-15 Thread Michal Privoznik
On 03/15/2017 02:16 AM, Jim Fehlig wrote: > On 03/13/2017 06:29 AM, Michal Privoznik wrote: >> There were couple of reports on the list (e.g. [1]) that guests >> with huge amounts of RAM are unable to start because libvirt >> kills qemu in the initialization phase. The problem is that if >> guest

Re: [libvirt] [PATCH v3 04/18] conf: Rework parsing in virStoragePoolDefParseSourceAdapter

2017-03-15 Thread John Ferlan
On 03/14/2017 03:08 PM, Laine Stump wrote: > On 03/14/2017 02:30 PM, John Ferlan wrote: >> >> On 03/11/2017 08:16 PM, Laine Stump wrote: >>> On 03/10/2017 04:10 PM, John Ferlan wrote: Rather than use virXPathString, pass along an virXPathNode and alter the parsing to use

Re: [libvirt] [PATCH v3 06/18] conf: Rename API's in storage_adapter_conf

2017-03-15 Thread John Ferlan
[...] int -virStoragePoolSourceAdapterParseValidate(virStoragePoolDefPtr ret) +virStorageAdapterParseValidate(virStoragePoolDefPtr ret) >>> >>> This function should take a virStoragePoolSourceAdapterPtr rather than >>> virStoragePoolDefPtr, and the name should just be >>>

Re: [libvirt] [BUG] mlock support breakage

2017-03-15 Thread Andrea Bolognani
On Wed, 2017-03-15 at 08:59 +0100, Jiri Denemark wrote: > > > Removing all memory locking limits should be something that > > > admins very carefully opt-in into, because of the potential > > > host DoS consequences. Certainly not the default. > >  > > There's no opt-in with , it is mandatory to

Re: [libvirt] [BUG] mlock support breakage

2017-03-15 Thread Jiri Denemark
On Tue, Mar 14, 2017 at 15:54:25 -0400, Luiz Capitulino wrote: > On Tue, 14 Mar 2017 20:28:12 +0100 > Andrea Bolognani wrote: > > > On Tue, 2017-03-14 at 14:54 -0400, Luiz Capitulino wrote: > > > > It's unfortunate that the current, buggy behavior made > > > > it look like

Re: [libvirt] libvirt and dmesg

2017-03-15 Thread Michel Pierre-Jacques
thank's Cedric i try this way, like i do with lxcfs and libvirt for having good counter on the lxc domain side ( RAM / disk / CPu ) i post her because i'm not sure it's a way of using or a limit of libvirt, i try the other mailing list too in the future On Wed, 15 Mar 2017 09:53:15 +0100

Re: [libvirt] libvirt and dmesg

2017-03-15 Thread Cedric Bosdonnat
Hello Pierre-Jacques, First note that you posted your message on the developer's mailing list. For such user questions, rather email: https://www.redhat.com/mailman/listinfo/libvirt-users According to https://linuxcontainers.org/lxc/manpages//man5/lxc.container.conf.5.html lxc.kmsg is only

[libvirt] libvirt and dmesg

2017-03-15 Thread Michel Pierre-Jacques
Hi all, il try to find the way to obtain the same use as in the lxc config file lxc.kmsg=0 how to do that, with the xml of a lxc domain, i make lot of try without success . is there another way to deny access to the dmesg for a libvirt lxc domain ? --- Kogitae AE Infogérance Linux /