On 06/22/2012 12:36 PM, Corey Bryant wrote:
> This patch adds the pass-fd QMP command using the QAPI framework.
> Like the getfd command, it is used to pass a file descriptor via
> SCM_RIGHTS and associate it with a name. However, the pass-fd
> command also returns the received file descriptor, wh
On 06/22/2012 12:36 PM, Corey Bryant wrote:
> This patch adds support to qemu_open to dup(fd) a pre-opened file
> descriptor if the filename is of the format /dev/fd/X.
>
> This can be used when QEMU is restricted from opening files, and
> the management application opens files on QEMU's behalf.
>
On 06/22/2012 12:36 PM, Corey Bryant wrote:
> This sets the close-on-exec flag for the file descriptor received
> via SCM_RIGHTS.
>
> Signed-off-by: Corey Bryant
> ---
> v4
> -This patch is new in v4 (ebl...@redhat.com)
>
> qemu-char.c |2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
This patch adds the pass-fd QMP command using the QAPI framework.
Like the getfd command, it is used to pass a file descriptor via
SCM_RIGHTS and associate it with a name. However, the pass-fd
command also returns the received file descriptor, which is a
difference in behavior from the getfd comma
This patch converts all block layer open calls to qemu_open. This
enables all block layer open paths to dup(X) a pre-opened file
descriptor if the filename is of the format /dev/fd/X. This is
useful if QEMU is restricted from opening certain files.
Note that this adds the O_CLOEXEC flag to the c
This sets the close-on-exec flag for the file descriptor received
via SCM_RIGHTS.
Signed-off-by: Corey Bryant
---
v4
-This patch is new in v4 (ebl...@redhat.com)
qemu-char.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qemu-char.c b/qemu-char.c
index c2aaaee..f890113
This patch adds support to qemu_open to dup(fd) a pre-opened file
descriptor if the filename is of the format /dev/fd/X.
This can be used when QEMU is restricted from opening files, and
the management application opens files on QEMU's behalf.
If the fd was passed to the monitor with the pass-fd c
Signed-off-by: Corey Bryant
---
v2:
-Convert getfd and closefd to QAPI (lcapitul...@redhat.com)
-Remove changes that returned fd from getfd (lcapitul...@redhat.com)
-Wrap hmp_* functions around qmp_* functions (kw...@redhat.com)
-Move hmp_* functions to hmp.c (lcapitul...@redhat.com)
-Drop .u
Signed-off-by: Corey Bryant
---
v4:
-This patch is new in v4.
monitor.c | 40
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/monitor.c b/monitor.c
index 3433c06..153e949 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2239,26 +2239,6 @@ sta
libvirt's sVirt security driver provides SELinux MAC isolation for
Qemu guest processes and their corresponding image files. In other
words, sVirt uses SELinux to prevent a QEMU process from opening
files that do not belong to it.
sVirt provides this support by labeling guests and resources with
Reported-by: Kevin Wolf
Reviewed-by: Paolo Bonzini
Signed-off-by: Corey Bryant
---
v3:
-This patch is new in v3. It was previously submitted on its
own, and is now being included in this series.
v4
-Moved patch to be earlier in series (lcapitul...@redhat.com)
block/raw-posix.c |4 +++
Hu Tao wrote:
>> >From 583be33213e922899b23f036494886397b2549dc Mon Sep 17 00:00:00 2001
>> From: Jim Fehlig
>> Date: Thu, 21 Jun 2012 09:21:44 -0600
>> Subject: [PATCH] Fix deadlock on libvirtd shutdown
>>
>> When shutting down libvirtd, the virNetServer shutdown can deadlock
>> if there are in-f
On Fri, Jun 22, 2012 at 11:00:57AM +0100, Daniel P. Berrange wrote:
> On Thu, Jun 21, 2012 at 11:39:46PM +0200, Andre Przywara wrote:
> > On 06/21/2012 07:51 PM, Eduardo Habkost wrote:
> > >Hi,
> > >
> > >I just noticed libvirt tries to use the -numa option in a way that qemu
> > >never understood:
When undefining a domain and removing associated storage using "virsh
undefine --storage" the domain was at first undefined and after that the
storage removal proces was started. If the user specified an invalid
disk to remove, the error could not be corrected.
This patch moves enumeration and fil
On 22.06.2012 07:30, Doug Goldstein wrote:
> Add a new 'domdisplay' command that provides a URI for both VNC and
> SPICE connections. Presently the 'vncdisplay' command provides you with
> the port info that QEMU is listening on but there is no counterpart for
> SPICE. Additionally this provides yo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Currently libvirt-lxc checks to see if the destination exists and is a
directory. If it is not a directory then the mount fails. Since libvirt-lxc
can bind mount files on an inode, this patch is needed to allow us to bind
mount files on files. Curre
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
We do not want to share /run between containers and the host. This patch
mounts a tmpfs on /run and then bind mounts /run on /var/run.
Reason this is pach 0003 is that this is a part of a previous patch set that
was never applied.
Sorry to those who
Currently, if domain's graphic has no listenAddr set we provide
the one from qemu.conf. However, we must make this transient to
not overwrite future changes to the config file. Moreover, we
have to store this into domain state XML so we remain consistent
on eventual config file edits.
---
Since use
We used to prefix 'rbd:' to volume names, this is not necessary.
Qemu takes RBD devices in this way, like: qemu -drive rbd:pool/image
When attaching a network disk like RBD to a guest we however do not use this
prefix.
Currently you can't map a RBD volume name directly to a domain without remov
KVM is an industry leading open source hypervisor that provides an ideal
platform for datacenter virtualization, virtual desktop infrastructure,
and cloud computing. Once again, it's time to bring together the
community of developers and users that define the KVM ecosystem for
our annual technical
Add minimal s390-virtio domain testcase and testcases for virtio serial,
net, disk for the virtio-s390 bus.
Signed-off-by: Viktor Mihajlovski
---
.../qemuxml2argv-console-virtio-s390.args |9 ++
.../qemuxml2argv-console-virtio-s390.xml | 24 +++
.../qemux
The s390(x) architecture doesn't feature a PCI bus. For the purpose of
supporting virtio devices a virtual bus called virtio-s390 is used.
A new address type VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_S390 is used to
distinguish the virtio devices on s390 from PCI-based virtio devices.
Signed-off-by: V
This is in preparation of the enablement of s390 guests with virtio devices.
The assignment of device addresses happens in different places, i.e. the
qemu driver and process modules as well as in the unit tests in slightly
different flavors. Currently, these are PPC spapr-vio and PCI
devices, virt
Starting a KVM guest on s390 fails immediately. This is because
"qemu --help" reports -no-acpi even for the s390(x) architecture but
-no-acpi isn't supported there.
Workaround is to remove QEMU_CAPS_NO_ACPI from the capability set
after the version/capability extraction.
Signed-off-by: Viktor Miha
Resending as a thread, same content. Please ignore previous submission.
This series adds support for the s390 flavor of virtio devices.
Since the s390 virtio devices are not implemented as PCI devices
it is necessary to refactor some of the device address assignment
code.
Viktor Mihajlovski (5):
From: Thang Pham
In order to retrieve some sysinfo data we need to parse /proc/sysinfo and
/proc/cpuinfo.
Signed-off-by: Thang Pham
Signed-off-by: Viktor Mihajlovski
---
src/util/sysinfo.c | 154
1 files changed, 154 insertions(+), 0 delet
For the s390x architecture the sysfs core_id alone is not unique. As a
result it can happen that libvirt thinks there are less host CPUs available
than really present.
Currently, a logical CPU is equivalent to a core for s390x. We therefore
produce a fake core id from the CPU number.
Signed-off-by
From: Thang Pham
Minimal CPU "parser" for s390 to avoid compile time warning.
Signed-off-by: Thang Pham
Signed-off-by: Viktor Mihajlovski
---
src/nodeinfo.c |5 +
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/nodeinfo.c b/src/nodeinfo.c
index f7d0cc6..7eb5ae5 1006
Rewrote the device assignment parts in tests to use qemuDomainAssignAddresses.
This way the tests will work for new device address types as they show
up in the future (like s390 device types).
Signed-off-by: Viktor Mihajlovski
---
tests/qemuxml2argvtest.c | 12 +---
tests/qemuxmlnstest
Resending as a thread, same content. Please ignore previous submission.
The first series of patches aimed to enable libvirt to manage
qemu/kvm domains hosted on the System z platform.
The patches in this series address s390 specifics of node and hypervisor.
Patches 2,3 and 5 are written by Thang
From: Thang Pham
Adding CPU encoder/decoder for s390 to avoid runtime error messages.
Signed-off-by: Thang Pham
Signed-off-by: Viktor Mihajlovski
---
src/Makefile.am |1 +
src/cpu/cpu.c |2 +
src/cpu/cpu_s390x.c | 80 +++
src
Added s390-virtio machine type to the XML schema for domains in order
to not fail the domain schema tests.
Signed-off-by: Viktor Mihajlovski
---
docs/schemas/domaincommon.rng | 20
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/docs/schemas/domaincommon.rn
On 06/22/2012 06:22 AM, Eric Blake wrote:
On 06/21/2012 10:11 AM, Viktor Mihajlovski wrote:
Hi,
although there's already some code in libvirt for qemu on s390
it has experienced a certain level of degradation over time.
Or, to put it short: it is not compatible with upstream
qemu/kvm.
Thank
On Fri, Jun 22, 2012 at 01:18:49PM +0200, Michal Privoznik wrote:
> On 22.06.2012 12:07, Daniel P. Berrange wrote:
> > On Fri, Jun 22, 2012 at 10:19:06AM +0200, Michal Privoznik wrote:
> >> On 22.06.2012 07:38, Doug Goldstein wrote:
> >>> On Fri, Jun 22, 2012 at 12:30 AM, Doug Goldstein
> >>> wro
On 22.06.2012 12:07, Daniel P. Berrange wrote:
> On Fri, Jun 22, 2012 at 10:19:06AM +0200, Michal Privoznik wrote:
>> On 22.06.2012 07:38, Doug Goldstein wrote:
>>> On Fri, Jun 22, 2012 at 12:30 AM, Doug Goldstein wrote:
Add a new 'domdisplay' command that provides a URI for both VNC and
On 22.06.2012 12:10, Daniel P. Berrange wrote:
> On Fri, Jun 22, 2012 at 12:01:01PM +0200, Michal Privoznik wrote:
>> On 21.06.2012 12:51, Daniel P. Berrange wrote:
>>> On Thu, Jun 21, 2012 at 12:34:18PM +0200, Michal Privoznik wrote:
Since commit cfd4460b we must require glib-2.32.0 at least
On 06/22/2012 11:59 AM, Daniel P. Berrange wrote:
On Fri, Jun 22, 2012 at 09:50:25AM +0200, Michal Privoznik wrote:
On 21.06.2012 18:15, Viktor Mihajlovski wrote:
Starting a KVM guest on s390 fails immediately. This is because
"qemu --help" reports -no-acpi even for the s390(x) architecture bu
From: "Daniel P. Berrange"
Currently you can configure LXC to bind a host directory to
a guest directory, but not to bind a guest directory to a
guest directory. While the guest container init could do
this itself, allowing it in the libvirt XML means a stricter
SELinux policy can be written
---
From: "Daniel P. Berrange"
Introduce a new syntax for filesystems to allow use of a RAM
filesystem
The usage units default to KiB to limit consumption of host memory.
* docs/formatdomain.html.in: Document new syntax
* docs/schemas/domaincommon.rng: Add new attributes
* sr
On Fri, Jun 22, 2012 at 12:01:01PM +0200, Michal Privoznik wrote:
> On 21.06.2012 12:51, Daniel P. Berrange wrote:
> > On Thu, Jun 21, 2012 at 12:34:18PM +0200, Michal Privoznik wrote:
> >> Since commit cfd4460b we must require glib-2.32.0 at least
> >> because we are using g_value_set_schar which
On Fri, Jun 22, 2012 at 10:19:06AM +0200, Michal Privoznik wrote:
> On 22.06.2012 07:38, Doug Goldstein wrote:
> > On Fri, Jun 22, 2012 at 12:30 AM, Doug Goldstein wrote:
> >> Add a new 'domdisplay' command that provides a URI for both VNC and
> >> SPICE connections. Presently the 'vncdisplay' com
On 21.06.2012 12:51, Daniel P. Berrange wrote:
> On Thu, Jun 21, 2012 at 12:34:18PM +0200, Michal Privoznik wrote:
>> Since commit cfd4460b we must require glib-2.32.0 at least
>> because we are using g_value_set_schar which was introduced
>> in that release.
>> ---
>> configure.ac |2 +-
>> 1
On Thu, Jun 21, 2012 at 11:39:46PM +0200, Andre Przywara wrote:
> On 06/21/2012 07:51 PM, Eduardo Habkost wrote:
> >Hi,
> >
> >I just noticed libvirt tries to use the -numa option in a way that qemu
> >never understood: if a node is configured to have a non-contiguous set
> >of CPUs, it tries to ge
On Fri, Jun 22, 2012 at 09:50:25AM +0200, Michal Privoznik wrote:
> On 21.06.2012 18:15, Viktor Mihajlovski wrote:
> >
> > Starting a KVM guest on s390 fails immediately. This is because
> > "qemu --help" reports -no-acpi even for the s390(x) architecture but
> > -no-acpi isn't supported there.
>
On Thu, Jun 21, 2012 at 03:12:39PM +0200, Marc-André Lureau wrote:
> ---
> libvirt-gobject/libvirt-gobject-domain.c | 75
> ++
> libvirt-gobject/libvirt-gobject-domain.h |9
> libvirt-gobject/libvirt-gobject.sym |3 ++
> 3 files changed, 87 insertio
Hey,
On Fri, Jun 22, 2012 at 12:30:37AM -0500, Doug Goldstein wrote:
> Add a new 'domdisplay' command that provides a URI for both VNC and
> SPICE connections. Presently the 'vncdisplay' command provides you with
> the port info that QEMU is listening on but there is no counterpart for
> SPICE. Ad
On 06/22/12 09:25, Martin Kletzander wrote:
On 06/21/2012 06:36 PM, Peter Krempa wrote:
This patch adds a check for the count of processors the user requests
for the guest machine so that invalid values produce a more helpful
error message.
---
tools/virsh.c |2 +-
1 files changed, 1 inse
On 22.06.2012 07:38, Doug Goldstein wrote:
> On Fri, Jun 22, 2012 at 12:30 AM, Doug Goldstein wrote:
>> Add a new 'domdisplay' command that provides a URI for both VNC and
>> SPICE connections. Presently the 'vncdisplay' command provides you with
>> the port info that QEMU is listening on but ther
- Original Message -
> From: "Eric Blake"
> To: "Federico Simoncelli"
> Cc: "Daniel P. Berrange" , libvir-list@redhat.com
> Sent: Friday, June 22, 2012 6:19:34 AM
> Subject: Re: [libvirt] [PATCH] Add support for shared sanlock leases
>
> On 06/21/2012 11:00 AM, Federico Simoncelli wrot
On 21.06.2012 18:15, Viktor Mihajlovski wrote:
>
> Starting a KVM guest on s390 fails immediately. This is because
> "qemu --help" reports -no-acpi even for the s390(x) architecture but
> -no-acpi isn't supported there.
> Workaround is to remove QEMU_CAPS_NO_ACPI from the capability set
> after th
On 06/21/2012 06:36 PM, Peter Krempa wrote:
> This patch adds a check for the count of processors the user requests
> for the guest machine so that invalid values produce a more helpful
> error message.
> ---
> tools/virsh.c |2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff -
On 06/21/2012 03:59 PM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange"
>
> Sometimes it is useful to re-bootstrap libvirt without running
> through a ./configure invocation immediately. eg if you want
> to run ./configure for Mingw32 rather than native.
> ---
> autogen.sh |2 ++
> 1
52 matches
Mail list logo