Re: [libvirt] No VirtualBox Driver

2012-12-16 Thread Peter Krempa
On 12/17/12 07:40, Arslan Waqar wrote: Hi all, Hi Arslan, I am new to the group and hence there might be a chance I might be asking a simple question... The thing is I compiled and installed libvirt from git. Then in my terminal window I started virsh. It started. Then since I had Virtual B

[libvirt] No VirtualBox Driver

2012-12-16 Thread Arslan Waqar
Hi all, I am new to the group and hence there might be a chance I might be asking a simple question... The thing is I compiled and installed libvirt from git. Then in my terminal window I started virsh. It started. Then since I had Virtual Box installed on my machine I ran "connect vbox:///sessi

Re: [libvirt] [test-API][PATCH] set_vcpus_*: Add check point with vcpusFlags API

2012-12-16 Thread Guannan Ren
On 12/14/2012 04:39 PM, Wayne Sun wrote: * add check with vcpusFlags API, it return current or max vcpu base on given flags Signed-off-by: Wayne Sun --- repos/setVcpus/set_vcpus_config.py | 28 repos/setVcpus/set_vcpus_live.py |8 2 files cha

Re: [libvirt] [test-API][PATCH] Add two numa parameters cases

2012-12-16 Thread Guannan Ren
On 12/14/2012 03:50 PM, Wayne Sun wrote: * cover live and config flags. * config case use numaParameters API to check and confirm with check domain config xml. * live update numa parameters is with problem now, setNumaParameters API is with bug 857312 on live domain. Also use numaParamet

Re: [libvirt] [PATCH v3 0/4]use newer video device by -device in qemu commandline

2012-12-16 Thread Guannan Ren
On 12/13/2012 05:06 PM, Guannan Ren wrote: v2: Check qemu version, it has to be qemu >= 1.2 for using new video device with -device qemu option v3: Add a new caps bit QEMU_CAPS_1DOT20_PLUS to mark qemu >= 1.2 Add a new testcase for improved qemu commandline Fixed all placed pointed

[libvirt] Release of libvirt-1.0.1

2012-12-16 Thread Daniel Veillard
So as scheduled, and since we got only a few fixes on top of rc2 I made the release this morning, it is tagged in the git tree and tarball and rpms are available as usual at: ftp://libvirt.org/libvirt/ This is a balanced release with both new features, a lot of improvements and a reasonable a

Re: [libvirt] [PATCH] daemon: Preface polkit error output with 'polkit:'

2012-12-16 Thread Peter Krempa
On 12/17/12 00:15, Cole Robinson wrote: There's been a few bugs about an expected error from polkit: https://bugzilla.redhat.com/show_bug.cgi?id=873799 https://bugzilla.redhat.com/show_bug.cgi?id=872166 The error is: Authorization requires authentication but no agent is available. The error m

[libvirt] [PATCH] daemon: Preface polkit error output with 'polkit:'

2012-12-16 Thread Cole Robinson
There's been a few bugs about an expected error from polkit: https://bugzilla.redhat.com/show_bug.cgi?id=873799 https://bugzilla.redhat.com/show_bug.cgi?id=872166 The error is: Authorization requires authentication but no agent is available. The error means that polkit needs a password, but the

Re: [libvirt] [PATCH 0/2] FreeBSD: nodeinfo support and CPU affinity stubs

2012-12-16 Thread Peter Krempa
On 12/16/12 15:47, Roman Bogorodskiy wrote: With this set of changes it's now possible to connect to libvirtd using virsh and start/shutdown domains with the obvious limitation that networking is not supported at this point. CPU affinity most likely could be implemented using cpu_setaffinity(2)

Re: [libvirt] [PATCH 2/2] FreeBSD: stub out CPU affinity functions.

2012-12-16 Thread Peter Krempa
On 12/16/12 15:47, Roman Bogorodskiy wrote: --- src/util/processinfo.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/src/util/processinfo.c b/src/util/processinfo.c index b1db049..4822bcc 100644 --- a/src/util/processinfo.c +++ b/src/util/processinfo.c @@ -168,6 +

Re: [libvirt] [PATCH 1/2] FreeBSD: add nodeinfo support.

2012-12-16 Thread Peter Krempa
On 12/16/12 15:47, Roman Bogorodskiy wrote: Uses sysctl(3) interface to obtain CPU and memory information. --- src/nodeinfo.c | 75 +- 1 file changed, 74 insertions(+), 1 deletion(-) diff --git a/src/nodeinfo.c b/src/nodeinfo.c index 096

Re: [libvirt] [PATCH] Support custom 'svirt_tcg_t' context for TCG based guests

2012-12-16 Thread Cole Robinson
On 12/12/2012 06:49 AM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > The current SELinux policy only works for KVM guests, since > TCG requires the 'execmem' privilege. There is a 'virt_use_execmem' > boolean to turn this on globally, but that is unpleasant for users. > This changes

Re: [libvirt] [PATCH 7/8 v8] qemu: Set unpriv_sgio when attaching disk

2012-12-16 Thread Osier Yang
On 2012年12月15日 06:05, Eric Blake wrote: On 12/14/2012 08:45 AM, Osier Yang wrote: Just like for domain starting, this sets the disk's unpriv_sgio if cdbfilter is specified when attaching disk. --- src/qemu/qemu_driver.c | 23 +-- 1 files changed, 17 insertions(+), 6 dele

Re: [libvirt] [PATCH 8/8] qemu: Error out if the shared disk conf conflicts with others when attaching

2012-12-16 Thread Osier Yang
On 2012年12月15日 06:13, Eric Blake wrote: On 12/13/2012 12:05 PM, Osier Yang wrote: Just like for domain starting, this checks if the shared disk's conf conflicts with others. --- src/qemu/qemu_driver.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/qemu/qemu_d

Re: [libvirt] [PATCH 6/8 v8] qemu: Check if the shared disk's cdbfilter conflicts with others

2012-12-16 Thread Osier Yang
On 2012年12月15日 05:49, Eric Blake wrote: On 12/14/2012 08:44 AM, Osier Yang wrote: This prevents the domain starting if the shared disk's setting conflicts with other active domain(s), E.g. A domain with "cdbfilter" set as "yes", however, another active domain is using it set as "no". --- src/q

Re: [libvirt] [PATCH 5/8 v8] qemu: set unpriv_sgio when domain starting

2012-12-16 Thread Osier Yang
On 2012年12月15日 05:36, Eric Blake wrote: On 12/14/2012 08:43 AM, Osier Yang wrote: Note that cdbfilter is not exactly match unpriv_sgio's value. VIR_DOMAIN_DISK_CDB_FILTER_YES mean the kernel will filter the SCSI commands, which maps to 0 of unpriv_sgio; VIR_DOMAIN_DISK_CDB_FILTER_NO maps to 1 of

Re: [libvirt] [PATCH 1/8 v8] util: Prepare helpers for unpriv_sgio setting

2012-12-16 Thread Osier Yang
On 2012年12月15日 02:56, Eric Blake wrote: On 12/14/2012 08:41 AM, Osier Yang wrote: "virGetDeviceID" could be used across the sources, but it doesn't relate with this series, and could be done later. * src/util/util.h: (Declare virGetDeviceID, and vir{Get,Set}DeviceUnprivSGIO

Re: [libvirt] [PATCH 3/8] docs: Add docs and rng schema for new XML cdbfilter

2012-12-16 Thread Osier Yang
On 2012年12月15日 04:47, Eric Blake wrote: On 12/14/2012 01:33 PM, Eric Blake wrote: On 12/13/2012 12:05 PM, Osier Yang wrote: Since "rawio" and "cdbfilter" are only valid for "lun", this groups them together; And since both of them intend to allow the unprivledged user to use the SG_IO commands,

[libvirt] [PATCH 0/2] FreeBSD: nodeinfo support and CPU affinity stubs

2012-12-16 Thread Roman Bogorodskiy
With this set of changes it's now possible to connect to libvirtd using virsh and start/shutdown domains with the obvious limitation that networking is not supported at this point. CPU affinity most likely could be implemented using cpu_setaffinity(2) and cpu_getaffinity(2) on FreeBSD, but networ

[libvirt] [PATCH 2/2] FreeBSD: stub out CPU affinity functions.

2012-12-16 Thread Roman Bogorodskiy
--- src/util/processinfo.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/src/util/processinfo.c b/src/util/processinfo.c index b1db049..4822bcc 100644 --- a/src/util/processinfo.c +++ b/src/util/processinfo.c @@ -168,6 +168,28 @@ realloc: return 0; } +#elif de

[libvirt] [PATCH 1/2] FreeBSD: add nodeinfo support.

2012-12-16 Thread Roman Bogorodskiy
Uses sysctl(3) interface to obtain CPU and memory information. --- src/nodeinfo.c | 75 +- 1 file changed, 74 insertions(+), 1 deletion(-) diff --git a/src/nodeinfo.c b/src/nodeinfo.c index 096000b..f6fdf90 100644 --- a/src/nodeinfo.c +++ b/

Re: [libvirt] [PATCH] build: minor build fixes for BSD

2012-12-16 Thread Roman Bogorodskiy
Eric Blake wrote: > Noticed these while building on FreeBSD. > > * src/qemu/qemu_monitor.c (qemuMonitorBlockInfoLookup): Rename > variable to avoid 'devname' collision. > * src/qemu/qemu_driver.c (qemuDomainInterfaceStats): Mark unused > variable. Although I see it's already committed, just wa