Re: [libvirt] [PATCH 5/5] Reuse the socket in virNetDevGetFeatures

2016-06-08 Thread Ján Tomko
On Wed, Jun 08, 2016 at 10:01:34PM +0200, Olaf Hering wrote: > On Mon, Jun 06, Ján Tomko wrote: > > > virNetDevGetEthtoolGFeatures(virBitmapPtr bitmap ATTRIBUTE_UNUSED, > > - const char *ifname ATTRIBUTE_UNUSED) > > + int fd ATTRIBUTE_UNUSED

Re: [libvirt] [PATCH 09/10] cputest: Rename nehalem-force to penryn-force

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 14:41:37 +0200, Jiri Denemark wrote: > The actual CPU model in the data files is Penryn which makes the file > name look rather strange. Well, one of them contains Nehalem, but that's > a bug which will be fixed in the following patch. > > Signed-off-by: Jiri Denemark > --

Re: [libvirt] [PATCH 07/10] cpu: Add ARAT x86 CPU feature

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 14:41:35 +0200, Jiri Denemark wrote: > Implemented in QEMU by commit 28b8e4d0bf93ba176b4b7be819d537383c5a9060. > > Signed-off-by: Jiri Denemark > --- > src/cpu/cpu_map.xml | 5 + [...] > > diff --git a/src/cpu/cpu_map.xml b/src/cpu/c

Re: [libvirt] [PATCH 06/10] cpu: Add x86 feature flags for CPUID leaf 0xd, sub leaf 1

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 14:41:34 +0200, Jiri Denemark wrote: > This was implemented in QEMU by commit 0bb0b2d2fe7f645dda. > > Signed-off-by: Jiri Denemark > --- > src/cpu/cpu_map.xml | 14 ++ [...] ACK -- libvir-list mailing list libvir-list@redhat.c

Re: [libvirt] [PATCH 03/10] cpu_x86: Add full support for ecx_in CPUID parameter

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 14:41:31 +0200, Jiri Denemark wrote: > This patch makes our CPUID handling code up-to-date with the current > specification found in > > Intel® 64 and IA-32 Architectures Developer's Manual: Vol. 2A > http://www.intel.com/content/www/us/en/processors/architectures-software-

[libvirt] [PATCH v2 Repost 0/5] bhyve: virConnectDomainXMLFromNative

2016-06-08 Thread Fabian Freyer
I'm reposting this series because I got the following two error messages from the redhat.com MX: libvir-list@redhat.com SMTP error from remote mail server after RCPT TO:: host mx1.redhat.com [209.132.183.28]: 554 5.7.1 : Recipient address rejected: Access denied : host int-mx.corp.r

[libvirt] [PATCH v2 4/5] bhyve: implement bhyve argument parser

2016-06-08 Thread Fabian Freyer
A simple getopt-based argument parser is added for the /usr/sbin/bhyve command, loosely based on its argument parser, which reads the following from the bhyve command line string: * vm name * number of vcpus * memory size * the time offset (UTC or localtime). This includes a capability check to se

[libvirt] [PATCH v2 5/5] bhyve: implement argument parser for loader

2016-06-08 Thread Fabian Freyer
A simple getopt-based argument parser is added for the /usr/sbin/bhyveload command, loosely based on its argument parser. The boot disk is guessed by iterating over all disks and matching their sources. If any non-default arguments are found, def->os.bootloaderArgs is set accordingly, and the boot

[libvirt] [PATCH 2/5] gnulib: add getopt module

2016-06-08 Thread Fabian Freyer
Unconditionally use gnulib's getopt module. This is needed by the bhyve driver to provide a reentrant interface for getopt. --- bootstrap.conf | 1 + m4/virt-driver-bhyve.m4 | 3 +++ 2 files changed, 4 insertions(+) diff --git a/bootstrap.conf b/bootstrap.conf index 0db6b62..edea8c3 1006

[libvirt] [PATCH 1/5] config-post.h: define __GNUC_PREREQ if not defined

2016-06-08 Thread Fabian Freyer
Several gnulib headers rely on feature.h being included by ctype.h to provide __GNUC_PREREQ, but on systems without glibc, this is not provided. In these cases __GNUC_PREREQ gets redefined to 0, which causes build errors from checks in src/internal.h. Therefore, define __GNUC_PREREQ as early as pos

Re: [libvirt] [PATCH V2 1/6] driver config: Introduce virFirmware object

2016-06-08 Thread Jim Fehlig
FYI, there seems to be a problem withint-mx.corp.redhat.com. It failed to post 0/6 and 3/6 with 550 5.1.1 ... User unknown (in reply to RCPT TO command) I'm rather reluctant to spam the list by resending the series. Regards, Jim On 06/08/2016 05:23 PM, Jim Fehlig wrote: > The virQEMUDriverConf

Re: [libvirt] [PATCH v4 2/2] qemu: Add support for zero-detection writes

2016-06-08 Thread John Ferlan
On 06/04/2016 08:46 PM, Martin Kletzander wrote: > Signed-off-by: Martin Kletzander > --- > src/qemu/qemu_capabilities.c | 3 +++ > src/qemu/qemu_capabilities.h | 3 +++ > src/qemu/qemu_command.c| 11 + > tests/qe

Re: [libvirt] [PATCH v4 1/2] conf: Add support of zero-detection for disks

2016-06-08 Thread John Ferlan
On 06/04/2016 08:46 PM, Martin Kletzander wrote: > This option allows or disallows detection of zero-writes if it is set to > "on" or "off", respectively. It can be also set to "unmap" in which > case it will try discarding that part of image based on the value of the > "discard" option. > > Si

[libvirt] [PATCH V2 1/6] driver config: Introduce virFirmware object

2016-06-08 Thread Jim Fehlig
The virQEMUDriverConfig object contains lists of loader:nvram pairs to advertise firmwares supported by by the driver, and qemu_conf.c contains code to populate the lists, all of which is useful for other drivers too. To avoid code duplication, introduce a virFirmware object to encapsulate firmwar

[libvirt] [PATCH V2 2/6] libxl: add default firmwares to driver config object

2016-06-08 Thread Jim Fehlig
Prefer firmwares specified via --with-loader-nvram configure option. If none are specified, use the Xen-provided default firmwares found in LIBXL_FIRMWARE_DIR. Signed-off-by: Jim Fehlig --- src/libxl/libxl_conf.c | 21 + src/libxl/libxl_conf.h | 4 2 files changed, 25 i

[libvirt] [PATCH V2 4/6] libxl: implement connectGetDomainCapabilities

2016-06-08 Thread Jim Fehlig
Add domain capabilities for PV and HVM domains. Signed-off-by: Jim Fehlig --- src/libxl/libxl_capabilities.c | 140 + src/libxl/libxl_capabilities.h | 7 ++ src/libxl/libxl_driver.c | 74 +++ tests/Makefile.am

[libvirt] [PATCH V2 5/6] xenconfig: support bios=ovmf xl.cfg

2016-06-08 Thread Jim Fehlig
Add support to xenconfig for conversion of xl.cfg(5) bios config to/from libvirt domXml config. SeaBIOS is the default for HVM guests using upstream QEMU. ROMBIOS is the default when using the old qemu-dm. This patch allows specifying OVMF as an alternate firmware. Example xl.cfg: bios = "ovmf"

Re: [libvirt] [RFC PATCH 0/4] Add new function about block backup

2016-06-08 Thread John Snow
On 06/08/2016 02:21 AM, Rudy Zhang wrote: > Add new function about block backup, it supports the drive-backup function > in qemu, it supports three modes: full, top, incremental. > Cheers Rudy! I assume you've CC'd me as I authored a lot of the incremental backup infrastructure in QEMU. I'm no

Re: [libvirt] [PATCH 1/4] Introduce virDomainBlockBackup API

2016-06-08 Thread Eric Blake
On 06/08/2016 12:21 AM, Rudy Zhang wrote: > For Backuping the disk image. > > It supports tree backup mode: full, top, incremental. > Incremental backup mode must do full or top backup first, > and it exists dirty bitmap to trace io. > > Signed-off-by: longyou > --- > +++ b/src/remote/remote_dr

[libvirt] [GSoC] Abstracting device address allocation

2016-06-08 Thread Tomasz Flendrich
Hello everyone, Let me introduce myself - I'm Tomasz Flendrich and I'm a Google Summer of Code student from University of Wrocław, Poland. My goal is to create a generic address allocator (for PCI, virtio, SCSI, etc.), because current handling of addresses has its flaws: sometimes addresses aren'

Re: [libvirt] [PATCH 5/5] Reuse the socket in virNetDevGetFeatures

2016-06-08 Thread Olaf Hering
On Mon, Jun 06, Ján Tomko wrote: > virNetDevGetEthtoolGFeatures(virBitmapPtr bitmap ATTRIBUTE_UNUSED, > - const char *ifname ATTRIBUTE_UNUSED) > + int fd ATTRIBUTE_UNUSED, > + struct ifreq *ifr ATTRIBUGE_UNUSED)

Re: [libvirt] [PATCH v2] virsh: domdisplay: if listen is 0.0.0.0 or [::] print address from URI

2016-06-08 Thread John Ferlan
On 06/08/2016 07:14 AM, Pavel Hrdina wrote: > Currently if a guest has listen address 0.0.0.0 or [::] and you run > "virsh domdisplay $domain" you always get "spice://localhost:$port". > > We want to print better address if someone is connected from a different > computer using "virsh -c qemu+ss

[libvirt] [PATCH v6 10/10] vnc: add support for listen type none

2016-06-08 Thread Pavel Hrdina
Signed-off-by: Pavel Hrdina --- docs/formatdomain.html.in | 3 ++- src/conf/domain_conf.c | 3 ++- src/qemu/qemu_command.c| 3 +++ .../qemuxml2argv-graphics-vnc-none.args| 20 +++ .../qemux

[libvirt] [PATCH v6 09/10] spice: introduce listen type none

2016-06-08 Thread Pavel Hrdina
This new listen type is currently supported only by spice graphics. It's introduced to make it easier and clearer specify to not listen anywhere in order to start a guest with OpenGL support. The old way to do this was set spice graphics autoport='no' and don't specify any ports. The new way is t

[libvirt] [PATCH v6 03/10] vnc: move generation of socket path to qemuProcessGraphicsSetupListen

2016-06-08 Thread Pavel Hrdina
This moves the socket generation if "vnc_auto_unix_socket" is set. It also fixes a bug with this config option that we should auto-generate socket path only if listen type is address and there is no address specified. Signed-off-by: Pavel Hrdina --- src/qemu/qemu.conf | 6 +++--- src/qemu

[libvirt] [PATCH v6 05/10] vnc: add support for listen type 'socket'

2016-06-08 Thread Pavel Hrdina
VNC graphics already supports sockets but only via 'socket' attribute. This patch coverts that attribute into listen type 'socket'. For backward compatibility we need to handle listen type 'socket' and 'socket' attribute properly to support old XMLs and new XMLs. If both are provided they have to

Re: [libvirt] [PATCH v2 19/19] tests: Rename virtTestMain to virTestMain.

2016-06-08 Thread John Ferlan
On 05/26/2016 11:02 AM, Tomáš Ryšavý wrote: > This function doesn't follow our convention of naming functions. > --- > tests/testutils.c | 8 > tests/testutils.h | 12 ++-- > 2 files changed, 10 insertions(+), 10 deletions(-) > ACK 13-19 Using cscope and searching on 'virtTe

[libvirt] [PATCH v6 08/10] spice: introduce spice_auto_unix_socket config option

2016-06-08 Thread Pavel Hrdina
Signed-off-by: Pavel Hrdina --- src/qemu/libvirtd_qemu.aug | 1 + src/qemu/qemu.conf | 11 +++ src/qemu/qemu_conf.c | 1 + src/qemu/qemu_conf.h | 1 + src/qemu/qemu_process.c

[libvirt] [PATCH v6 00/10] introduce new listen types for graphics

2016-06-08 Thread Pavel Hrdina
Changes in v6: - patch 1 from v5 is split into paches 1-5 Pavel Hrdina (10): qemu_command: move websocket code into else part for address listen vnc: rename socketAutogenerated to socketFromConfig vnc: move generation of socket path to qemuProcessGraphicsSetupListen graphics: introduce

[libvirt] [PATCH v6 02/10] vnc: rename socketAutogenerated to socketFromConfig

2016-06-08 Thread Pavel Hrdina
Even though it's auto-generated it's based on qemu.conf option and listen type address already uses "fromConfig" to carry this information. Following commits will convert the socket to listen element so this rename is required because there will be also an option to get socket auto-generated indep

[libvirt] [PATCH v6 06/10] qemu_capabilites: add QEMU_CAPS_SPICE_UNIX

2016-06-08 Thread Pavel Hrdina
Add a new capability to detect support of unix sockets for spice graphics. Signed-off-by: Pavel Hrdina --- src/qemu/qemu_capabilities.c | 2 ++ src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata/caps_2.4.0.x86_64.xml | 1 + tests/qemucapabiliti

[libvirt] [PATCH v6 04/10] graphics: introduce new listen type 'socket'

2016-06-08 Thread Pavel Hrdina
Signed-off-by: Pavel Hrdina --- docs/formatdomain.html.in | 8 ++ docs/schemas/domaincommon.rng | 10 src/conf/domain_conf.c| 60 +-- src/conf/domain_conf.h| 6 + src/libvirt_private.syms | 1 + src/qemu/qemu_hot

[libvirt] [PATCH v6 01/10] qemu_command: move websocket code into else part for address listen

2016-06-08 Thread Pavel Hrdina
There is no need to check again for vnc socket. Signed-off-by: Pavel Hrdina --- src/qemu/qemu_command.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index b5d84e6..8523992 100644 --- a/src/qemu/qemu_comman

[libvirt] [PATCH v6 07/10] spice: add support for listen type socket

2016-06-08 Thread Pavel Hrdina
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1335832 Signed-off-by: Pavel Hrdina --- docs/formatdomain.html.in | 2 +- src/conf/domain_conf.c | 31 src/qemu/qemu_command.c| 56

Re: [libvirt] [PATCH 05/10] cpu: Sort CPU map features on eax_in

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 14:41:33 +0200, Jiri Denemark wrote: > As a side effect this changes the order of CPU features in XMLs > generated by libvirt, but that's not a big deal since the order there is > insignificant. > > Signed-off-by: Jiri Denemark > --- ACK -- libvir-list mailing list libvi

Re: [libvirt] [PATCH v2 12/19] tests: Rename virtTestDifferenceFullNoRegenerate.

2016-06-08 Thread John Ferlan
On 05/26/2016 11:02 AM, Tomáš Ryšavý wrote: > This function doesn't follow our convention of naming functions. > --- > tests/qemuxml2xmltest.c | 6 +++--- > tests/testutils.c | 16 You forgot tests/testutils.h > 2 files changed, 11 insertions(+), 11 deletions(-) > I f

Re: [libvirt] [PATCH 04/10] cpu: Shorten eax_in values in CPU map

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 14:41:32 +0200, Jiri Denemark wrote: > For two reasons: > - 0x0001 is very similar to 0x8001, but 0x01 is visually > different > - 0x01 format is consistent with CPUID manual > > Signed-off-by: Jiri Denemark > --- > src/cpu/cpu_map.xml | 158 > +

Re: [libvirt] [PATCH v2 11/19] tests: Rename virtTestQuiesceLibvirtErrors to virTestQuiesceLibvirtErrors.

2016-06-08 Thread John Ferlan
On 05/26/2016 11:02 AM, Tomáš Ryšavý wrote: > This function doesn't follow our convention of naming functions. > --- > tests/esxutilstest.c| 2 +- > tests/metadatatest.c| 2 +- > tests/objecteventtest.c | 2 +- > tests/sockettest.c | 2 +- > tests/testutils.c | 2 +- > tests/t

Re: [libvirt] Patch review request for Red Hat Bugzilla ­ Bug 1341866

2016-06-08 Thread Daniel P. Berrange
On Wed, Jun 08, 2016 at 02:55:24PM +, Ashish Mittal wrote: > Thanks Daniel! > > I also sent a path on top of libvirt master using "git send-email" as > directed on libvirt.org. That patch is much more cleaner. (1) does not > have storage pool changes since OpenFlame does not use storage pools

Re: [libvirt] [PATCH 02/10] cpu_x86: Prepare for ecx_in CPUID parameter

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 14:41:30 +0200, Jiri Denemark wrote: > CPUID instruction normally takes its parameter from EAX, but sometimes > ECX is used as an additional parameter. This patch prepares the x86 CPU > driver code for the new 'ecx_in' CPUID parameter. > > Signed-off-by: Jiri Denemark > --

Re: [libvirt] Patch review request for Red Hat Bugzilla ­ Bug 1341866

2016-06-08 Thread Ashish Mittal
Thanks Daniel! I also sent a path on top of libvirt master using "git send-email" as directed on libvirt.org. That patch is much more cleaner. (1) does not have storage pool changes since OpenFlame does not use storage pools (yet). (2) Uses the new encrypted secret passing as the others have done.

Re: [libvirt] [PATCH] libvirt.spec.in: include NORMAL as a fallback for @SYSTEM in TLS prio

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 15:38:06 +0100, Daniel Berrange wrote: > While all Fedora systems should have a crypto policy config > file that defines @SYSTEM policy. You never know, however, > if someone has done a peculiar Fedora build / install that > does not setup the crypto policy. As a protection

Re: [libvirt] [PATCH 01/10] qemumonitorjsontest: Add getcpu test data

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 14:41:29 +0200, Jiri Denemark wrote: > Signed-off-by: Jiri Denemark > --- > .../qemumonitorjson-getcpu-ecx.data| 7 +++ > .../qemumonitorjson-getcpu-ecx.json| 57 > ++ > tests/qemumonitorjsontest.c

Re: [libvirt] [PATCH] virschematest: call va_end even on OOM

2016-06-08 Thread Pavel Hrdina
On Wed, Jun 08, 2016 at 04:35:25PM +0200, Ján Tomko wrote: > Jump to cleanup if virAsprintf fails. > --- > tests/virschematest.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > ACK -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-li

[libvirt] [PATCH] libvirt.spec.in: include NORMAL as a fallback for @SYSTEM in TLS prio

2016-06-08 Thread Daniel P. Berrange
While all Fedora systems should have a crypto policy config file that defines @SYSTEM policy. You never know, however, if someone has done a peculiar Fedora build / install that does not setup the crypto policy. As a protection measure we should tell gnutls to automatically fallback to NORMAL if @S

[libvirt] [PATCH] virschematest: call va_end even on OOM

2016-06-08 Thread Ján Tomko
Jump to cleanup if virAsprintf fails. --- tests/virschematest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/virschematest.c b/tests/virschematest.c index c173037..f15e2ab 100644 --- a/tests/virschematest.c +++ b/tests/virschematest.c @@ -117,23 +117,23 @@ testSche

Re: [libvirt] [PATCH v2 01/19] tests: Rename virtTestRun to virTestRun.

2016-06-08 Thread John Ferlan
On 05/26/2016 11:01 AM, Tomáš Ryšavý wrote: > This function doesn't follow our convention of naming functions. > --- > tests/bhyvexml2argvtest.c | 2 +- > tests/bhyvexml2xmltest.c | 2 +- > tests/commandtest.c| 4 +-- > tests/cputest.c|

Re: [libvirt] Patch review request for Red Hat Bugzilla ­ Bug 1341866

2016-06-08 Thread Daniel P. Berrange
On Tue, Jun 07, 2016 at 08:54:56PM +, Ashish Mittal wrote: > Hi, > > This is a patch review request in response to the following bugzilla: > Bug 1341866 RFE: Request to upstream libvirt dependencies for qemu > based network block driver from Veritas Great, thanks for moving the discu

Re: [libvirt] [PATCH 41/41] tests: Add CPU detection test for Intel Xeon X5460

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 10:22:55 +0200, Jiri Denemark wrote: > Signed-off-by: Jiri Denemark > --- > tests/cputest.c | 1 + > tests/cputestdata/x86-cpuid-Xeon-X5460-guest.xml | 21 ++ > tests/cputestdata/x86-cpuid-Xeon-X5460-host.xml | 21

Re: [libvirt] [PATCH 12/41] tests: Add CPU detection tests

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 10:22:26 +0200, Jiri Denemark wrote: > So far we only test CPUID -> CPU def conversion on artificial CPUID data > computed from another CPU def. This patch adds the infrastructure to > test this conversion on real data gathered from a host CPU and two > helper scripts for ad

Re: [libvirt] [PATCH v4] node_device: Replace VIR_ERROR with standard vir*Error in state driver init

2016-06-08 Thread Cole Robinson
On 06/08/2016 09:20 AM, Jovanka Gulicoska wrote: > --- > src/node_device/node_device_hal.c | 27 ++- > 1 file changed, 18 insertions(+), 9 deletions(-) > > diff --git a/src/node_device/node_device_hal.c > b/src/node_device/node_device_hal.c > index 6ddfad0..2718706 100644

[libvirt] [PATCH v4 3/3] qemu: return balloon statistics alongside all domain stats

2016-06-08 Thread Derbyshev Dmitriy
From: Derbyshev Dmitry To collect all balloon statistics for all guests it was necessary to make several libvirt requests (one per VE). This patch allows doing this via qemuConnectGetAllDomainStats in one request. Changes: * qemuDomainMemoryStats became a helper function which calls qemuDomain

[libvirt] [PATCH v4 1/3] qemu: expand domain memory statistics with 'usable'

2016-06-08 Thread Derbyshev Dmitriy
From: Derbyshev Dmitry 'memtotal' in virtio drivers and qemu corresponds to 'available' in libvirt. Because of that, 'stat-available-memory' is renamed into 'usable'. Balloon statistics are not reported in hrf, so no modifications are made in qemu_monitor_text.c. Signed-off-by: Derbyshev Dmitry

[libvirt] [PATCH v4 0/3] qemu: expand domain memory statistics

2016-06-08 Thread Derbyshev Dmitriy
From: Derbyshev Dmitry QEMU reports timestamp and available along with other memory statistics. This information was not saved into domain statistics. Also, to collect all balloon statistics for all guests it was necessary to make several libvirt requests (one per VE). Last patch allows doing th

[libvirt] [PATCH v4 2/3] qemu: expand domain memory statistics with 'last-update' timestamp

2016-06-08 Thread Derbyshev Dmitriy
From: Derbyshev Dmitry QEMU reports timestamp along with other memory statistics, but this information is not saved into domain statistics. It could be useful to determine if the data reported is fresh or not. Balloon statistics are not reported in hrf, so no modifications are made in qemu_moni

Re: [libvirt] [PATCH 11/41] cpu_x86: Refactor internal KVM features

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 10:22:25 +0200, Jiri Denemark wrote: > The internal features are only used in explicit checks with > cpuHasFeature. Loading them into the CPU map is dangerous since the > features may accidentally be reported to users when decoding CPUID data. > > Signed-off-by: Jiri Denema

Re: [libvirt] [PATCH 0/9] LXC: Use virDomainObjGetDefs more

2016-06-08 Thread Ján Tomko
On Wed, Jun 08, 2016 at 08:45:21AM -0400, John Ferlan wrote: > > > On 06/06/2016 04:08 AM, Ján Tomko wrote: > > In a few API implementations, we use virDomainLiveConfigHelperMethod > > to check the VIR_DOMAIN_AFFECT_* flags (and change the flags variable > > to either AFFECT_LIVE or AFFECT_CONFIG

Re: [libvirt] [PATCH 10/41] cpu_ppc64: Avoid unnecessary pointer to virCPUppc64Data

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 10:22:24 +0200, Jiri Denemark wrote: > virCPUData and struct ppc64_model structures contained a pointer to > virCPUppc64Data, which was not very nice since the real data were > accessible by yet another level of pointers from virCPUppc64Data. > > Signed-off-by: Jiri Denemar

Re: [libvirt] [PATCH 09/41] cpu_x86: Avoid unnecessary pointers to virCPUx86Data

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 10:22:23 +0200, Jiri Denemark wrote: > virCPUData, virCPUx86Feature, and virCPUx86Model all contained a pointer > to virCPUx86Data, which was not very nice since the real CPUID data were > accessible by yet another pointer from virCPUx86Data. Moreover, using > virCPUx86Data

[libvirt] [PATCH v4] node_device: Replace VIR_ERROR with standard vir*Error in state driver init

2016-06-08 Thread Jovanka Gulicoska
--- src/node_device/node_device_hal.c | 27 ++- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/src/node_device/node_device_hal.c b/src/node_device/node_device_hal.c index 6ddfad0..2718706 100644 --- a/src/node_device/node_device_hal.c +++ b/src/node_device/

Re: [libvirt] [PATCH 08/41] tests: Create simple monitor in qemuMonitorTestNewFromFile

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 10:22:22 +0200, Jiri Denemark wrote: > The current version uses the first JSON reply from the file as monitor > greeting. With the new parameter the caller can now request a simple > test monitor to be created, which uses an artificial greeting and uses > all JSON strings fr

Re: [libvirt] [PATCH 07/41] tests: Fix "Reponse" typo

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 10:22:21 +0200, Jiri Denemark wrote: > Signed-off-by: Jiri Denemark > --- > tests/qemumonitortestutils.c | 24 > tests/qemumonitortestutils.h | 4 ++-- > 2 files changed, 14 insertions(+), 14 deletions(-) ACK -- libvir-list mailing list libvir-l

Re: [libvirt] [PATCH 06/41] tests: Introduce qemuMonitorTestNewFromFile

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 10:22:20 +0200, Jiri Denemark wrote: > It's a convenient wrapper around qemuMonitorTestNew which feeds the test > monitor with QMP replies from a specified file. > > Signed-off-by: Jiri Denemark > --- > tests/qemucapabilitiestest.c | 57 +--

Re: [libvirt] [PATCH 05/41] qemu: Refactor qemuMonitorJSONGetCPUx86Data

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 10:22:19 +0200, Jiri Denemark wrote: > This patch splits qemuMonitorJSONGetCPUx86Data in three functions: > > - qemuMonitorJSONCheckCPUx86 checks if QEMU supports reporting CPUID > features for a guest CPU > > - qemuMonitorJSONParseCPUx86Features parses CPUID features fr

Re: [libvirt] [PATCH 0/9] LXC: Use virDomainObjGetDefs more

2016-06-08 Thread John Ferlan
On 06/06/2016 04:08 AM, Ján Tomko wrote: > In a few API implementations, we use virDomainLiveConfigHelperMethod > to check the VIR_DOMAIN_AFFECT_* flags (and change the flags variable > to either AFFECT_LIVE or AFFECT_CONFIG if AFFECT_CURRENT was requested) > and optionally give us a pointer to t

Re: [libvirt] [PATCH 5/9] Use virDomainObjGetDefs in lxcDomainGetMemoryParameters

2016-06-08 Thread John Ferlan
On 06/06/2016 04:08 AM, Ján Tomko wrote: > Instead of virDomainLiveConfigHelperMethod. > --- > src/lxc/lxc_driver.c | 18 +- > 1 file changed, 9 insertions(+), 9 deletions(-) > > diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c > index c39b4b4..00b4df2 100644 > --- a/src

Re: [libvirt] [PATCH 4/9] Use virDomainObjGetDefs in lxcDomainGetSchedulerParametersFlags

2016-06-08 Thread John Ferlan
On 06/06/2016 04:08 AM, Ján Tomko wrote: > On LXC domain startup we have already called virDomainObjSetDefTransient > to fill vm->newDef. > > There is no need to call virDomainLiveConfigHelperMethod which has the > ability to fill newDef if it's NULL. > --- > src/lxc/lxc_driver.c | 13 +++--

Re: [libvirt] [PATCH 2/9] Use virDomainObjGetDefs in lxcDomainSetMemoryFlags

2016-06-08 Thread John Ferlan
On 06/06/2016 04:08 AM, Ján Tomko wrote: > On LXC domain startup we have already called virDomainObjSetDefTransient > to fill vm->newDef. > > There is no need to call virDomainLiveConfigHelperMethod which has the > ability to fill newDef if it's NULL. > --- > src/lxc/lxc_driver.c | 26 +

[libvirt] [PATCH 08/10] cpu: Add Skylake-Client x86 CPU model

2016-06-08 Thread Jiri Denemark
The CPU model was implemented in QEMU by commit TBD (it's on x86-next branch waiting for a pull request). The change to i7-5600U is wrong since it's a 5th generation CPU, i.e., Broadwell rather than Skylake, but that's just the result of our CPU detection code (which will be fixed by a later patch

[libvirt] [PATCH 03/10] cpu_x86: Add full support for ecx_in CPUID parameter

2016-06-08 Thread Jiri Denemark
This patch makes our CPUID handling code up-to-date with the current specification found in Intel® 64 and IA-32 Architectures Developer's Manual: Vol. 2A http://www.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html Signed-off-by: Jiri Denemark --- src/cpu/cpu_

[libvirt] [PATCH 10/10] cpu_x86: Use signature in CPU detection code

2016-06-08 Thread Jiri Denemark
Our current detection code uses just the number of CPU features which need to be added/removed from the CPU model to fully describe the CPUID data. The smallest number wins. But this may sometimes generate wrong results as one can see from the fixed test cases. This patch modifies the algorithm to

[libvirt] [PATCH 05/10] cpu: Sort CPU map features on eax_in

2016-06-08 Thread Jiri Denemark
As a side effect this changes the order of CPU features in XMLs generated by libvirt, but that's not a big deal since the order there is insignificant. Signed-off-by: Jiri Denemark --- src/cpu/cpu_map.xml| 118 ++--- tests/cputestdata/x86-cpuid-A10

[libvirt] [PATCH 09/10] cputest: Rename nehalem-force to penryn-force

2016-06-08 Thread Jiri Denemark
The actual CPU model in the data files is Penryn which makes the file name look rather strange. Well, one of them contains Nehalem, but that's a bug which will be fixed in the following patch. Signed-off-by: Jiri Denemark --- tests/cputest.c

[libvirt] [PATCH 01/10] qemumonitorjsontest: Add getcpu test data

2016-06-08 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- .../qemumonitorjson-getcpu-ecx.data| 7 +++ .../qemumonitorjson-getcpu-ecx.json| 57 ++ tests/qemumonitorjsontest.c| 1 + 3 files changed, 65 insertions(+) create mode 100644 tests/qemu

[libvirt] [PATCH 04/10] cpu: Shorten eax_in values in CPU map

2016-06-08 Thread Jiri Denemark
For two reasons: - 0x0001 is very similar to 0x8001, but 0x01 is visually different - 0x01 format is consistent with CPUID manual Signed-off-by: Jiri Denemark --- src/cpu/cpu_map.xml | 158 ++-- 1 file changed, 79 insertions(+), 79 deleti

[libvirt] [PATCH 02/10] cpu_x86: Prepare for ecx_in CPUID parameter

2016-06-08 Thread Jiri Denemark
CPUID instruction normally takes its parameter from EAX, but sometimes ECX is used as an additional parameter. This patch prepares the x86 CPU driver code for the new 'ecx_in' CPUID parameter. Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 52 +-

[libvirt] [PATCH 07/10] cpu: Add ARAT x86 CPU feature

2016-06-08 Thread Jiri Denemark
Implemented in QEMU by commit 28b8e4d0bf93ba176b4b7be819d537383c5a9060. Signed-off-by: Jiri Denemark --- src/cpu/cpu_map.xml | 5 + tests/cputestdata/x86-cpuid-Core-i5-2500-guest.xml | 1 + tests/cputestdata/x86-cpuid-Core-i5-2500-host.xml| 1 + tests/c

[libvirt] [PATCH 00/10] Add new CPU model for Skylake CPUs

2016-06-08 Thread Jiri Denemark
This series applies on top of "Another round of CPU driver patches" I sent earlier today. Jiri Denemark (10): qemumonitorjsontest: Add getcpu test data cpu_x86: Prepare for ecx_in CPUID parameter cpu_x86: Add full support for ecx_in CPUID parameter cpu: Shorten eax_in values in CPU map c

[libvirt] [PATCH 06/10] cpu: Add x86 feature flags for CPUID leaf 0xd, sub leaf 1

2016-06-08 Thread Jiri Denemark
This was implemented in QEMU by commit 0bb0b2d2fe7f645dda. Signed-off-by: Jiri Denemark --- src/cpu/cpu_map.xml | 14 ++ tests/cputestdata/x86-cpuid-Core-i5-2500-guest.xml | 1 + tests/cputestdata/x86-cpuid-Core-i5-2500-host.xml | 1 + tests/cpute

Re: [libvirt] [PATCH 04/41] cpu_x86: Rename CPUID function to eax_in

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 10:22:18 +0200, Jiri Denemark wrote: > CPUID instruction normally takes its parameter from EAX, but sometimes > ECX is used as an additional parameter. Let's rename 'function' to > 'eax_in' in preparation for adding 'ecx_in'. > > Signed-off-by: Jiri Denemark > --- > src/c

Re: [libvirt] [PATCH 03/41] cpu: Detect arch when parsing CPU data

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 10:22:17 +0200, Jiri Denemark wrote: > A CPU data XML file already contains the architecture, let the parser > use it to detect which CPU driver should be used to parse the rest of > the file. > > Signed-off-by: Jiri Denemark > --- > src/cpu/cpu.c | 54 +++

Re: [libvirt] Questions about virtlogd

2016-06-08 Thread Wei Liu
On Wed, Jun 08, 2016 at 11:07:16AM +0100, Daniel P. Berrange wrote: [...] > > situation, but that's just a matter of plumbing I think.) > > > > The options we've come up with, broadly, are as follows: > > > > 1. Try to use the existing syslog facilities > > > > 2. Re-purpose one of our existing

Re: [libvirt] [PATCH] virsh-network: Avoid possible NULL deref in cmdNetworkDHCPLeases

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 13:53:05 +0200, Michal Privoznik wrote: > Problem is, localtime_r() returns a pointer to converted time or > NULL in case of an error. But checking the glibc sources, error > will occur iff a NULL has been passed as an either of arguments > the function takes. But GCC fails

Re: [libvirt] [PATCHv2 1/5] Introduce virXMLValidator structure

2016-06-08 Thread Laine Stump
On 06/08/2016 04:10 AM, Ján Tomko wrote: On Wed, Jun 08, 2016 at 08:49:37AM +0200, Peter Krempa wrote: On Tue, Jun 07, 2016 at 20:07:28 +0200, Ján Tomko wrote: Store all the data related to RNG validation in one structure to allow splitting virXMLValidateAgainstSchema. --- src/util/virxml.c |

Re: [libvirt] [PATCH 02/41] cpu_x86: Fix CPU data parser

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 10:22:16 +0200, Jiri Denemark wrote: > The formatter uses /cpudata/cpuid elements and the parser should really > do the same. > > Signed-off-by: Jiri Denemark > --- > src/cpu/cpu_x86.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) ACK -- libvir-list mailin

Re: [libvirt] [PATCH 01/41] cpu_x86: Propagate vendor to guest's virCPUData

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 10:22:15 +0200, Jiri Denemark wrote: > When computing CPU data for a given guest CPU we should set CPUID vendor > bits appropriately so that we don't lose the vendor when transforming > CPU data back to XML description. > > Signed-off-by: Jiri Denemark > --- > src/cpu/cpu

[libvirt] [PATCH] virsh-network: Avoid possible NULL deref in cmdNetworkDHCPLeases

2016-06-08 Thread Michal Privoznik
Problem is, localtime_r() returns a pointer to converted time or NULL in case of an error. But checking the glibc sources, error will occur iff a NULL has been passed as an either of arguments the function takes. But GCC fails to see that: ../../tools/virsh-network.c: In function 'cmdNetworkDHCPLe

Re: [libvirt] [PATCH v2 2/2] qemu_process: don't print empty line if qemu exits without any error

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 12:37:36 +0200, Pavel Hrdina wrote: > Resolves: Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1335617 s/^Resolves: // > > Signed-off-by: Pavel Hrdina > --- > src/qemu/qemu_process.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a

Re: [libvirt] [PATCH v2 1/2] qemu_monitor: rephrase error message if qemu closes monitor

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 12:37:35 +0200, Pavel Hrdina wrote: > Signed-off-by: Pavel Hrdina > --- > src/qemu/qemu_monitor.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c > index 597307f..3524d22 100644 > --- a/src/qemu/

Re: [libvirt] [PATCH v2] virsh: domdisplay: if listen is 0.0.0.0 or [::] print address from URI

2016-06-08 Thread Peter Krempa
On Wed, Jun 08, 2016 at 13:14:00 +0200, Pavel Hrdina wrote: > Currently if a guest has listen address 0.0.0.0 or [::] and you run > "virsh domdisplay $domain" you always get "spice://localhost:$port". > > We want to print better address if someone is connected from a different > computer using "vi

[libvirt] [PATCH] virschematest: Link with libxml2

2016-06-08 Thread Michal Privoznik
We use libxml2 APIs in the test (e.g. xmlFreeDoc) but not link with -lxml2 which can cause problems: /usr/bin/ld: virschematest.o: undefined reference to symbol 'xmlFreeDoc@@LIBXML2_2.4.30' //usr/lib/x86_64-linux-gnu/libxml2.so.2: error adding symbols: DSO missing from command line collect2: err

Re: [libvirt] [PATCH 9/9] Use @SYSTEM priority for TLS on Fedora >= 21

2016-06-08 Thread Peter Krempa
On Mon, Jun 06, 2016 at 16:09:03 +0100, Daniel Berrange wrote: > In Fedora >= 21, there is a new crypto priority framework > that sets TLS policies globally for all apps. To activate > this with GNUTLS we must request "@SYSTEM" instead of > the traditional "NORMAL" string. The '@' causes gnutls tod

Re: [libvirt] [PATCH 8/9] remote: allow TLS priority to be customized

2016-06-08 Thread Peter Krempa
On Mon, Jun 06, 2016 at 16:09:02 +0100, Daniel Berrange wrote: > Support reading the TLS priority from the client configuration > file via the "tls_priority" config option, eg > > $ cat $HOME/.config/libvirt/libvirt.conf > tls_priority="NORMAL:-VERS-SSL3.0" > > Signed-off-by: Daniel P. Berrange

Re: [libvirt] [PATCH 7/9] Pass config file object through to driver open methods

2016-06-08 Thread Peter Krempa
On Mon, Jun 06, 2016 at 16:09:01 +0100, Daniel Berrange wrote: > The virConnectOpenInternal method opens the libvirt client > config file and uses it to resolve things like URI aliases. > > There may be driver specific things that are useful to > store in the config file too, so rather than have t

Re: [libvirt] [PATCH 6/9] remote: allow TLS protocol/cipher priority override in URI

2016-06-08 Thread Peter Krempa
On Mon, Jun 06, 2016 at 16:09:00 +0100, Daniel Berrange wrote: > Add support for a "tls_priority" URI parameter in remote > driver URIs. eg > > qemu+tls://localhost/session?tls_priority=NORMAL:-VERS-SSL3.0 > > Signed-off-by: Daniel P. Berrange > --- > docs/remote.html.in| 13 ++

[libvirt] [PATCH v2] virsh: domdisplay: if listen is 0.0.0.0 or [::] print address from URI

2016-06-08 Thread Pavel Hrdina
Currently if a guest has listen address 0.0.0.0 or [::] and you run "virsh domdisplay $domain" you always get "spice://localhost:$port". We want to print better address if someone is connected from a different computer using "virsh -c qemu+ssh://some.host/system". This patch fixes the behavior of

Re: [libvirt] [PATCH 5/9] libvirtd: add config option for TLS priority

2016-06-08 Thread Peter Krempa
On Mon, Jun 06, 2016 at 16:08:59 +0100, Daniel Berrange wrote: > Add a "tls_priority" config option to /etc/libvirt/libvirtd.conf > to allow the administrator to override the built-in default > setting. This only affects the server side configuration. > > Signed-off-by: Daniel P. Berrange > --- >

Re: [libvirt] [PATCH 3/9] configure: allow setting default TLS priority string

2016-06-08 Thread Daniel P. Berrange
On Wed, Jun 08, 2016 at 12:58:05PM +0200, Peter Krempa wrote: > On Mon, Jun 06, 2016 at 16:08:57 +0100, Daniel Berrange wrote: > > Currently libvirt calls gnutls_set_default_priority() > > which on old systems resolves to "NORMAL" while new > > systems it resolves to "@SYSTEM". Either way, this > >

Re: [libvirt] [PATCH 4/9] rpc: allow priority string to be passed to TLS context

2016-06-08 Thread Peter Krempa
On Mon, Jun 06, 2016 at 16:08:58 +0100, Daniel Berrange wrote: > Extend the virNetTLSContextNew* constructors to allow > the TLS priority string to be passed in, overriding the > compile time default. > > Signed-off-by: Daniel P. Berrange > --- > daemon/libvirtd.c| 2 ++ > src/remot

Re: [libvirt] [PATCH 3/9] configure: allow setting default TLS priority string

2016-06-08 Thread Peter Krempa
On Mon, Jun 06, 2016 at 16:08:57 +0100, Daniel Berrange wrote: > Currently libvirt calls gnutls_set_default_priority() > which on old systems resolves to "NORMAL" while new > systems it resolves to "@SYSTEM". Either way, this > is a global default that is identical across all apps. > > We want to

  1   2   >