[libvirt] [RFC] cgroup settings and systemd daemon-reload conflict

2018-01-29 Thread Nikolay Shirokovskiy
Hi, all. It turns out that systemd daemon-reload reset settings that are managable thru 'systemctl set-property' interface. > virsh schedinfo tst3 | grep global_quota global_quota : -1 > virsh schedinfo tst3 --set global_quota=5 | grep global_quota global_quota : 5 > systemctl daemon

Re: [libvirt] How to use /dev/net/tun from libvirt-lxc with user namespacing enabled

2018-01-29 Thread Thiago Padilha
Just noticed this list is for development-related discussions, sorry for sending support question. Will resend to libvirt-users. On Mon, Jan 29, 2018 at 5:08 PM, Thiago Padilha wrote: > I have a container rootfs that I use to keep all work-related stuff. This > container was originally created b

Re: [libvirt] [PATCH v5 02/16] qemu: Introduce qemuDomainDeviceDefValidateControllerAttributes

2018-01-29 Thread John Ferlan
On 01/29/2018 12:53 PM, Ján Tomko wrote: > On Mon, Jan 29, 2018 at 12:43:14PM -0500, John Ferlan wrote: >> >> >> On 01/29/2018 04:18 AM, Ján Tomko wrote: >>> On Fri, Jan 05, 2018 at 06:47:25PM -0500, John Ferlan wrote: Move the checks that various attributes are not set on any controller >>>

Re: [libvirt] [PATCH v2 4.5/4 variant 1] util: Don't check if entries under /sys/fs/resctrl/info/ are directories

2018-01-29 Thread Martin Kletzander
On Mon, Jan 29, 2018 at 05:54:03PM +0100, Ján Tomko wrote: On Mon, Jan 29, 2018 at 05:45:44PM +0100, Martin Kletzander wrote: We are skipping non-directories under /sys/fs/resctrl/(info/) since those are not interesting for us. However in tests it can sometimes happen that ent->d_type is 0 ins

[libvirt] How to use /dev/net/tun from libvirt-lxc with user namespacing enabled

2018-01-29 Thread Thiago Padilha
I have a container rootfs that I use to keep all work-related stuff. This container was originally created by lxd (which creates all containers for use with user namespacing), but now I decided to start using libvirt for container management since I already use it for virtual machines, which will s

Re: [libvirt] [PATCH v5 14/16] qemu: Complete PCI command checks to controller def validate

2018-01-29 Thread John Ferlan
On 01/28/2018 03:48 AM, Michal Privoznik wrote: > On 01/06/2018 12:47 AM, John Ferlan wrote: >> Move the qemuCaps checks over to qemuDomainControllerDefValidatePCI. >> >> This requires two test updates in order to set the correct capability >> bit for an xml2xml test as well as setting up the sim

Re: [libvirt] [PATCH v5 02/16] qemu: Introduce qemuDomainDeviceDefValidateControllerAttributes

2018-01-29 Thread Ján Tomko
On Mon, Jan 29, 2018 at 12:43:14PM -0500, John Ferlan wrote: On 01/29/2018 04:18 AM, Ján Tomko wrote: On Fri, Jan 05, 2018 at 06:47:25PM -0500, John Ferlan wrote: Move the checks that various attributes are not set on any controller other than SCSI controller using virtio-scsi model into the

Re: [libvirt] [PATCH v5 02/16] qemu: Introduce qemuDomainDeviceDefValidateControllerAttributes

2018-01-29 Thread John Ferlan
On 01/29/2018 04:18 AM, Ján Tomko wrote: > On Fri, Jan 05, 2018 at 06:47:25PM -0500, John Ferlan wrote: >> Move the checks that various attributes are not set on any controller >> other than SCSI controller using virtio-scsi model into the common >> controller validate checks. >> >> Need to also

Re: [libvirt] [PATCH v5 02/16] qemu: Introduce qemuDomainDeviceDefValidateControllerAttributes

2018-01-29 Thread John Ferlan
On 01/29/2018 04:28 AM, Ján Tomko wrote: > On Sun, Jan 28, 2018 at 09:48:19AM +0100, Michal Privoznik wrote: >> On 01/06/2018 12:47 AM, John Ferlan wrote: >>> Move the checks that various attributes are not set on any controller >>> other than SCSI controller using virtio-scsi model into the comm

Re: [libvirt] [PATCH v5 01/16] qemu: Split qemuDomainSetSCSIControllerModel

2018-01-29 Thread John Ferlan
On 01/28/2018 03:48 AM, Michal Privoznik wrote: > On 01/06/2018 12:47 AM, John Ferlan wrote: >> Rather than one function serving two purposes, let's split things >> up into qemuDomainResetSCSIControllerModel for all current callers >> and then add qemuDomainCheckSCSIControllerModel when building

[libvirt] [PATCH] build: Fix broken build on FreeBSD and OSX after recent nodedev series

2018-01-29 Thread Erik Skultety
Commits f83c7c88 and 6eb1f2b9 broke the build on FreeBSD and OSX because of symbols being undefined for those platforms. Signed-off-by: Erik Skultety --- Pushed under the build breaker rule. src/conf/node_device_conf.c | 6 ++ src/util/virpci.c | 9 + 2 files changed, 15

Re: [libvirt] [PATCH 0/4] Tiny updates for virresctrl

2018-01-29 Thread Ján Tomko
On Mon, Jan 29, 2018 at 04:31:40PM +0100, Martin Kletzander wrote: The first patch is the only interesting one. Martin Kletzander (4): util: Check for empty allocation instead of just NULL pointer util: Use "resctrl" instead of "resctrlfs" spelling util: Make it possible for virResctrlAllocSe

Re: [libvirt] [PATCH v2 4.5/4 variant 1] util: Don't check if entries under /sys/fs/resctrl/info/ are directories

2018-01-29 Thread Ján Tomko
On Mon, Jan 29, 2018 at 05:45:44PM +0100, Martin Kletzander wrote: We are skipping non-directories under /sys/fs/resctrl/(info/) since those are not interesting for us. However in tests it can sometimes happen that ent->d_type is 0 instead of 4 (DT_DIR) for directories. I've seen it fail on tw

[libvirt] [PATCH v2 4.5/4 variant 1] util: Don't check if entries under /sys/fs/resctrl/info/ are directories

2018-01-29 Thread Martin Kletzander
We are skipping non-directories under /sys/fs/resctrl/(info/) since those are not interesting for us. However in tests it can sometimes happen that ent->d_type is 0 instead of 4 (DT_DIR) for directories. I've seen it fail on two machines. Different machines, different systems, I cannot reproduc

[libvirt] [PATCH v2 4.5/4 variant 2] util: Use stat() on files under /sys/fs/resctrl/info

2018-01-29 Thread Martin Kletzander
We are skipping non-directories under /sys/fs/resctrl/(info/) since those are not interesting for us. However in tests it can sometimes happen that ent->d_type is 0 instead of 4 (DT_DIR) for directories. I've seen it fail on two machines. Different machines, different systems, I cannot reproduc

[libvirt] [PATCH v3 06/11] qemu: Convert jobInfo stats into a union

2018-01-29 Thread John Ferlan
Convert the stats field in _qemuDomainJobInfo to be a union. This will allow for the collection of various different types of stats in the same field. While doing this, also change the name of the field from @stats to @migStats to make it easier to find. When starting the async job that will end u

[libvirt] [PATCH v3 11/11] docs: Add news article for query memory-only dump processing percentage

2018-01-29 Thread John Ferlan
Signed-off-by: John Ferlan --- docs/news.xml | 11 +++ 1 file changed, 11 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index 2268fdf79..60f2742fa 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -56,6 +56,17 @@ interfaces, NWFilters, and so on).

[libvirt] [PATCH v3 05/11] qemu: Introduce qemuDomainGetJobInfoMigrationStats

2018-01-29 Thread John Ferlan
Extract out the parts of qemuDomainGetJobStatsInternal that get the migration stats. We're about to add the ability to get just dump information. Signed-off-by: John Ferlan --- src/qemu/qemu_driver.c | 52 -- 1 file changed, 33 insertions(+), 19 de

[libvirt] [PATCH v3 08/11] qemu: Introduce qemuDomainGetJobInfoDumpStats

2018-01-29 Thread John Ferlan
Add an API to allow fetching the memory only dump statistics for a job via the qemuDomainGetJobInfo API. This adds a new statsType QEMU_DOMAIN_JOB_STATS_TYPE_MEMDUMP and corresponding data structure to the stats union in _qemuDomainJobInfo. Signed-off-by: John Ferlan --- src/qemu/qemu_domain.c |

[libvirt] [PATCH v3 10/11] qemu: Allow showing the dump progress for memory only dump

2018-01-29 Thread John Ferlan
https://bugzilla.redhat.com/show_bug.cgi?id=916061 If the QEMU version running is new enough (based on the DUMP_COMPLETED event), then we can add a 'detach' boolean to the dump-guest-memory command in order to tell QEMU to run in a thread. This ensures that we don't lock out other commands while t

[libvirt] [PATCH v3 07/11] qemu: Introduce QEMU_DOMAIN_JOB_STATS_TYPE_SAVEDUMP

2018-01-29 Thread John Ferlan
Add a TYPE_SAVEDUMP so that when coalescing stats for a save or dump we don't needlessly try to get the mirror stats for a migration. Other conditions can still use MIGRATION and SAVEDUMP interchangably including usage of the @migStats field to fetch/store the data. Signed-off-by: John Ferlan ---

[libvirt] [PATCH v3 00/11] Implement query-dump command

2018-01-29 Thread John Ferlan
v2: https://www.redhat.com/archives/libvir-list/2018-January/msg00636.html Summary of changes since v2: * Generate a dump stats extraction helper in order to share with the DUMP_COMPLETED event and the query-dump command. Additionally add the error string from Qemu to be processed later

[libvirt] [PATCH v3 02/11] qemu: Introduce qemuProcessHandleDumpCompleted

2018-01-29 Thread John Ferlan
Add data to qemuDomainJobObj in order to store the dump completion event information. Once the event has been received future code waiting on the event will be able to process the stats and error buffer. If there's no async job, we can just ignore. Signed-off-by: John Ferlan --- src/qemu/qemu_do

[libvirt] [PATCH v3 09/11] qemu: Add dump completed event to the capabilities

2018-01-29 Thread John Ferlan
Add the DUMP_COMPLETED check to the capabilities. This is the mechanism used to determine whether the dump-guest-memory command can support the "-detach" option and thus be able to wait on the event and allow for a query of the progress of the dump. Signed-off-by: John Ferlan --- src/qemu/qemu_c

[libvirt] [PATCH v3 04/11] qemu: Add new parameter to qemuMonitorDumpToFd

2018-01-29 Thread John Ferlan
Add a @detach parameter to the API in order allow running the QEMU code as a thread. Signed-off-by: John Ferlan --- src/qemu/qemu_driver.c | 2 +- src/qemu/qemu_monitor.c | 7 +-- src/qemu/qemu_monitor.h | 3 ++- src/qemu/qemu_monitor_json.c | 4 +++- src/qemu/qemu_monitor_js

[libvirt] [PATCH v3 01/11] qemu: Add support for DUMP_COMPLETED event

2018-01-29 Thread John Ferlan
The event will be fired when the domain memory only dump completes. Alloc a return buffer to store/pass along the dump statistics that will be eventually shared by a query-dump command. Signed-off-by: John Ferlan --- src/qemu/qemu_monitor.c | 29 src/qemu/qemu_monitor.

[libvirt] [PATCH v3 03/11] qemu: Introduce qemuMonitor[JSON]QueryDump

2018-01-29 Thread John Ferlan
Add the query-dump API's in order to allow the dump-guest-memory to be used to monitor progress. This will use the dump stats extraction helper to fill a return buffer. Signed-off-by: John Ferlan --- src/qemu/qemu_monitor.c | 9 + src/qemu/qemu_monitor.h | 2 ++ src/qemu/qemu

[libvirt] [PATCH 4.5/4 variant 1] util: Don't check if entries under /sys/fs/resctrl/info/ are directories

2018-01-29 Thread Martin Kletzander
We are skipping non-directories under /sys/fs/resctrl/info/ since those are not interesting for us. However in tests it can sometimes happen that ent->d_type is 0 instead of 4 (DT_DIR) for directories. I've seen it fail on two machines. Different machines, different systems, I cannot reproduce i

[libvirt] [PATCH 4.5/4 variant 2] util: Use stat() on files under /sys/fs/resctrl/info

2018-01-29 Thread Martin Kletzander
We are skipping non-directories under /sys/fs/resctrl/info/ since those are not interesting for us. However in tests it can sometimes happen that ent->d_type is 0 instead of 4 (DT_DIR) for directories. I've seen it fail on two machines. Different machines, different systems, I cannot reproduce i

[libvirt] [PATCH 3/4] util: Make it possible for virResctrlAllocSetMask to replace existing mask

2018-01-29 Thread Martin Kletzander
This wil be used in the future, but it makes sense for now as well. It makes sure there is no mask leftover that would leak. Signed-off-by: Martin Kletzander --- src/util/virresctrl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c index a1d09c5

[libvirt] [PATCH 4/4] util: Remove unused variable in virResctrlGetInfo

2018-01-29 Thread Martin Kletzander
Signed-off-by: Martin Kletzander --- src/util/virresctrl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c index 89b1382b6857..684cb22fd8a2 100644 --- a/src/util/virresctrl.c +++ b/src/util/virresctrl.c @@ -392,7 +392,6 @@ int virResctrlGetInfo(

[libvirt] [PATCH 2/4] util: Use "resctrl" instead of "resctrlfs" spelling

2018-01-29 Thread Martin Kletzander
Pointed out during review on one or two places, but it actually appears in lot more places. So let's be consistent. Signed-off-by: Martin Kletzander --- src/qemu/qemu_process.c | 2 +- src/util/virresctrl.c | 14 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/s

[libvirt] [PATCH 1/4] util: Check for empty allocation instead of just NULL pointer

2018-01-29 Thread Martin Kletzander
When working on the CAT series one of the changes was that the pointer got allocated in another part of the code, even when resctrl was not available on the host system. However this one particular place neglected that so it needs to be fixed in order to get the proper error message when requestin

[libvirt] [PATCH 0/4] Tiny updates for virresctrl

2018-01-29 Thread Martin Kletzander
The first patch is the only interesting one. Martin Kletzander (4): util: Check for empty allocation instead of just NULL pointer util: Use "resctrl" instead of "resctrlfs" spelling util: Make it possible for virResctrlAllocSetMask to replace existing mask util: Remove unused variable

Re: [libvirt] [PATCH 00/15] Nodedev-mdev overhaul

2018-01-29 Thread Erik Skultety
On Thu, Jan 25, 2018 at 10:23:47AM +0100, Erik Skultety wrote: > TL;DR: > nodedev: > - contained a decent amount of redundant code handling the same thing, > now it doesn't. > - only updated dynamic capabilities during dumpXML, now it does every > time it tou

Re: [libvirt] [PATCH 12/15] util: pci: Introduce virPCIGetMdevTypes helper

2018-01-29 Thread Erik Skultety
On Mon, Jan 29, 2018 at 02:02:19PM +0100, Michal Privoznik wrote > On 01/29/2018 01:24 PM, Erik Skultety wrote: > > On Fri, Jan 26, 2018 at 12:39:00PM +0100, Michal Privoznik wrote: > >> On 01/25/2018 10:23 AM, Erik Skultety wrote: > >>> This is a replacement for the existing udevPCIGetMdevTypesCap

Re: [libvirt] [PATCH 12/15] util: pci: Introduce virPCIGetMdevTypes helper

2018-01-29 Thread Michal Privoznik
On 01/29/2018 01:24 PM, Erik Skultety wrote: > On Fri, Jan 26, 2018 at 12:39:00PM +0100, Michal Privoznik wrote: >> On 01/25/2018 10:23 AM, Erik Skultety wrote: >>> This is a replacement for the existing udevPCIGetMdevTypesCap which is >>> static to the udev backend. This simple helper constructs t

Re: [libvirt] [PATCH 01/14] virstoragefile: Introduce virStoragePRDef

2018-01-29 Thread Michal Privoznik
On 01/26/2018 04:07 AM, John Ferlan wrote: > > > On 01/18/2018 11:04 AM, Michal Privoznik wrote: >> This is a definition that holds information on SCSI persistent >> reservation settings. The XML part looks like this: >> >> >> >> >> >> If @managed is set to 'yes' then the is not parse

Re: [libvirt] [PATCH 2/5] conf: Add pSeries features

2018-01-29 Thread Andrea Bolognani
On Thu, 2018-01-25 at 16:16 +, Daniel P. Berrangé wrote: > > My reasoning was to try and organize them the > > way we already do with and capabilities - even > > though pSeries is not a hypervisor per se, you can kinda see > > sPAPR as a specification implemented by various hypervisors, like

Re: [libvirt] [PATCH v3 2/4] qemu: introduce qemuARPGetInterfaces to get IP from host's arp table

2018-01-29 Thread Peter Krempa
On Mon, Jan 29, 2018 at 16:35:34 +0800, Chen Hanxiao wrote: > From: Chen Hanxiao > > introduce VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_ARP to get ip address > of VM from the output of /proc/net/arp > > Signed-off-by: Chen Hanxiao > --- > v3: > add docs in virDomainInterfaceAddresses > remove err

Re: [libvirt] [PATCH 12/15] util: pci: Introduce virPCIGetMdevTypes helper

2018-01-29 Thread Erik Skultety
On Fri, Jan 26, 2018 at 12:39:00PM +0100, Michal Privoznik wrote: > On 01/25/2018 10:23 AM, Erik Skultety wrote: > > This is a replacement for the existing udevPCIGetMdevTypesCap which is > > static to the udev backend. This simple helper constructs the sysfs path > > from the device's base path fo

Re: [libvirt] [PATCH] qemu: Add USB and memory balloon by default for aarch64/virt guests

2018-01-29 Thread Andrea Bolognani
On Thu, 2018-01-25 at 16:58 +, Daniel P. Berrangé wrote: > On Thu, Jan 25, 2018 at 05:45:51PM +0100, Andrea Bolognani wrote: > > Basically all existing guest types, regardless of the architectur, > > get both a USB controller and a virtio memory balloon by default. > > > > s390 guests are an e

Re: [libvirt] [PATCH v3 1/4] util: introduce helper to parse /proc/net/arp

2018-01-29 Thread Peter Krempa
On Mon, Jan 29, 2018 at 16:35:33 +0800, Chen Hanxiao wrote: > From: Chen Hanxiao > > introduce helper to parse /proc/net/arp and > store it in struct virArpTable. > > Signed-off-by: Chen Hanxiao > --- > v3: > s/virGetArpTable/virArpTableGet > alloc virArpTable in virArpTableGet > return E

Re: [libvirt] [PATCH v2] virsh: Checking the volume capacity before uploading a new file.

2018-01-29 Thread Michal Privoznik
On 01/23/2018 03:42 AM, Julio Faracco wrote: > Hi Peter, > > I agree about "length" parameter. > What I didn't understand is this error (check my test case): > > # virsh vol-create-as --pool disk-loop loop0 --capacity 20M > > # virsh vol-info loop0 disk-loop > Name: loop0 > Type:

Re: [libvirt] [PATCH 00/10] Enable direct use of secondary drivers

2018-01-29 Thread Erik Skultety
On Fri, Jan 26, 2018 at 01:35:27PM +, Daniel P. Berrangé wrote: > Currently the secondary drivers can only be used if you have a > connection to a primary hypervisor driver. This series introduces > explicit URIs that allow opening a connection that only talks to a > specific secondary driver.

Re: [libvirt] [PATCH 1/6] port allocator: make used port bitmap global

2018-01-29 Thread Michal Privoznik
On 01/29/2018 12:07 PM, Peter Krempa wrote: > On Mon, Jan 29, 2018 at 07:09:54 +0100, Michal Privoznik wrote: >> On 12/20/2017 07:35 AM, Nikolay Shirokovskiy wrote: >>> Host tcp4/tcp6 ports is a global resource thus we need to make >>> port accounting also global or we have issues described in [1]

Re: [libvirt] [PATCH 1/6] port allocator: make used port bitmap global

2018-01-29 Thread Peter Krempa
On Mon, Jan 29, 2018 at 07:09:54 +0100, Michal Privoznik wrote: > On 12/20/2017 07:35 AM, Nikolay Shirokovskiy wrote: > > Host tcp4/tcp6 ports is a global resource thus we need to make > > port accounting also global or we have issues described in [1] when > > port allocator ranges of different ins

Re: [libvirt] [PATCH 00/10] Enable direct use of secondary drivers

2018-01-29 Thread Peter Krempa
On Fri, Jan 26, 2018 at 13:35:27 +, Daniel Berrange wrote: > Currently the secondary drivers can only be used if you have a > connection to a primary hypervisor driver. This series introduces > explicit URIs that allow opening a connection that only talks to a > specific secondary driver. In th

Re: [libvirt] [PATCH 10/10] storage: remove virConnectPtr from all backend functions

2018-01-29 Thread Peter Krempa
On Fri, Jan 26, 2018 at 13:35:37 +, Daniel Berrange wrote: > Now that we can open connections to the secondary drivers on demand, > there is no need to pass a virConnectPtr into all the backend > functions. > > Signed-off-by: Daniel P. Berrangé > --- > src/storage/storage_backend.h

Re: [libvirt] [PATCH 09/10] storage: open secret driver connection at time of use

2018-01-29 Thread Peter Krempa
On Fri, Jan 26, 2018 at 13:35:36 +, Daniel Berrange wrote: > Instead of passing around a virConnectPtr object, just open a connection > to the secret driver at time of use. Opening connections on demand will > be beneficial when the secret driver is in a separate daemon. It also > solves the pr

Re: [libvirt] [PATCH 02/10] storage: allow opening with storage:///system and storage:///session URIs

2018-01-29 Thread Peter Krempa
On Fri, Jan 26, 2018 at 13:35:29 +, Daniel Berrange wrote: > Allow the possibility of opening a connection to only the storage > driver, by defining storage:///system and storage:///session URIs > and registering a fake hypervisor driver that supports them. > > The hypervisor drivers can now d

Re: [libvirt] [PATCH] Migration: Preserve the failed job in case migration job is terminated beyond the perform phase.

2018-01-29 Thread Prerna
Hi Jirka, On Thu, Jan 25, 2018 at 8:43 PM, Jiri Denemark wrote: > On Thu, Jan 25, 2018 at 19:51:23 +0530, Prerna Saxena wrote: > > In case of non-p2p migration, in case libvirt client gets disconnected > from source libvirt > > after PERFORM phase is over, the daemon just resets the current > mi

Re: [libvirt] [PATCH v5 02/16] qemu: Introduce qemuDomainDeviceDefValidateControllerAttributes

2018-01-29 Thread Ján Tomko
On Sun, Jan 28, 2018 at 09:48:19AM +0100, Michal Privoznik wrote: On 01/06/2018 12:47 AM, John Ferlan wrote: Move the checks that various attributes are not set on any controller other than SCSI controller using virtio-scsi model into the common controller validate checks. Need to also add a qe

Re: [libvirt] [PATCH v5 02/16] qemu: Introduce qemuDomainDeviceDefValidateControllerAttributes

2018-01-29 Thread Ján Tomko
On Fri, Jan 05, 2018 at 06:47:25PM -0500, John Ferlan wrote: Move the checks that various attributes are not set on any controller other than SCSI controller using virtio-scsi model into the common controller validate checks. Need to also add a qemuDomainResetSCSIControllerModel call in order to

Re: [libvirt] [PATCH 02/15] conf: nodedev: Rename virNodeDeviceCapMatch to virNodeDevObjHasCap

2018-01-29 Thread Michal Privoznik
On 01/29/2018 09:47 AM, Erik Skultety wrote: > On Fri, Jan 26, 2018 at 12:40:46PM +0100, Michal Privoznik wrote: >> On 01/25/2018 10:23 AM, Erik Skultety wrote: >>> We currently have 2 methods that do the capability matching. This should >>> be condensed to a single function and all the derivates s

Re: [libvirt] [PATCH 03/15] conf: nodedev: Convert virNodeDevObjHasCapStr to a simple wrapper

2018-01-29 Thread Michal Privoznik
On 01/29/2018 09:42 AM, Erik Skultety wrote: > On Fri, Jan 26, 2018 at 12:40:34PM +0100, Michal Privoznik wrote: >> On 01/25/2018 10:23 AM, Erik Skultety wrote: >>> This patch drops the capability matching redundancy by simply converting >>> the string input to our internal types which are then in

Re: [libvirt] [PATCH v3 2/2] tests: Adding test case for virsh 'domrename' command.

2018-01-29 Thread Michal Privoznik
On 01/15/2018 08:18 PM, Julio Faracco wrote: > This commit introduce the virsh-rename test script to test the 'domrename' > command. The test contains one succedeed script to rename and another > failed test. > > Signed-off-by: Julio Faracco > --- > tests/Makefile.am | 1 + > tests/virsh-renam

Re: [libvirt] [PATCH v3 1/2] test: Implementing testDomainRename().

2018-01-29 Thread Michal Privoznik
On 01/15/2018 08:18 PM, Julio Faracco wrote: > There is no method to rename inactive domains for test driver. > After this patch, we can rename the domains using 'domrename'. > > virsh# domrename test anothertest > Domain successfully renamed > > Signed-off-by: Julio Faracco > --- > src

Re: [libvirt] [PATCH 02/15] conf: nodedev: Rename virNodeDeviceCapMatch to virNodeDevObjHasCap

2018-01-29 Thread Erik Skultety
On Fri, Jan 26, 2018 at 12:40:46PM +0100, Michal Privoznik wrote: > On 01/25/2018 10:23 AM, Erik Skultety wrote: > > We currently have 2 methods that do the capability matching. This should > > be condensed to a single function and all the derivates should just call > > into that using a proper typ

Re: [libvirt] [PATCH 03/15] conf: nodedev: Convert virNodeDevObjHasCapStr to a simple wrapper

2018-01-29 Thread Erik Skultety
On Fri, Jan 26, 2018 at 12:40:34PM +0100, Michal Privoznik wrote: > On 01/25/2018 10:23 AM, Erik Skultety wrote: > > This patch drops the capability matching redundancy by simply converting > > the string input to our internal types which are then in turn used for > > the actual capability matching

[libvirt] [PATCH v3 3/4] virsh: add --source arp to domifaddr

2018-01-29 Thread Chen Hanxiao
From: Chen Hanxiao We can use: domifaddr f26-cloud --source arp to get the address. Acked-by: Michal Privoznik Signed-off-by: Chen Hanxiao --- tools/virsh-domain-monitor.c | 2 ++ tools/virsh.pod | 7 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/

[libvirt] [PATCH v3 4/4] news: qemu: use arp table of host to get the IP address of guests

2018-01-29 Thread Chen Hanxiao
From: Chen Hanxiao Signed-off-by: Chen Hanxiao --- v3: more verbose description docs/news.xml | 9 + 1 file changed, 9 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index 2268fdf79..706546e6d 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -56,6 +56,15 @@ int

[libvirt] [PATCH v3 0/4] qemu: use arp table of host to get the

2018-01-29 Thread Chen Hanxiao
introduce VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_ARP to get ip address of VM from the output of /proc/net/arp Chen Hanxiao (4): util: introduce helper to parse /proc/net/arp qemu: introduce qemuARPGetInterfaces to get IP from host's arp table virsh: add --source arp to domifaddr news: qemu: us

[libvirt] [PATCH v3 2/4] qemu: introduce qemuARPGetInterfaces to get IP from host's arp table

2018-01-29 Thread Chen Hanxiao
From: Chen Hanxiao introduce VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_ARP to get ip address of VM from the output of /proc/net/arp Signed-off-by: Chen Hanxiao --- v3: add docs in virDomainInterfaceAddresses remove error label show network interface which did not match the arp table include/li

[libvirt] [PATCH v3 1/4] util: introduce helper to parse /proc/net/arp

2018-01-29 Thread Chen Hanxiao
From: Chen Hanxiao introduce helper to parse /proc/net/arp and store it in struct virArpTable. Signed-off-by: Chen Hanxiao --- v3: s/virGetArpTable/virArpTableGet alloc virArpTable in virArpTableGet return ENOSUPP on none-Linux platform move helpers to virarptable.[ch] po/POTFILES.in

Re: [libvirt] [PATCH] resctl: stub out functions with Linux-only APIs used

2018-01-29 Thread Martin Kletzander
On Thu, Jan 25, 2018 at 05:44:04PM +, Daniel P. Berrangé wrote: The flock() function and d_type field in struct dirent are not portable to the mingw platform. Signed-off-by: Daniel P. Berrangé --- * Pushed as CI build fix Thanks for that. I have not seen a failure on travis, but I mis