On Thu, Sep 13, 2012 at 02:35:03PM +0100, Daniel P. Berrange wrote:
On Thu, Sep 13, 2012 at 02:03:20PM +0800, Hu Tao wrote:
In many places we store bitmap info in a chunk of data
(pointed to by a char *), and have redundant codes to
set/unset bits. This patch extends virBitmap, and convert
memset before virResetError will cause memory leak.
virResetError and virCopyError, which calls virResetError, will do
memset properly, so we don't have to worry about it here.
---
src/util/virterror.c |2 --
1 file changed, 2 deletions(-)
diff --git a/src/util/virterror.c
New command node-memory-tune to get/set the node memory parameters,
only two parameters are allowed to set (pages_to_scan, and sleep_millisecs,
see documents in this patch for more details).
Example of node-memory-tune's output:
Shared memory:
pages_to_scan 100
sleep_millisecs
v1:
https://www.redhat.com/archives/libvir-list/2012-September/msg00517.html
v1 - v2:
* Rename virNode{Get,Set}SharedMemoryParameters to
virNode{Get,Set}MemoryParameters, in case of we could add more
node memory tunables in future.
As a result of RFC:
* python/libvirt-override-api.xml: (Add document to describe
the APIs).
* python/libvirt-override.c: (Implement the API wrappers manually)
---
python/libvirt-override-api.xml | 13
python/libvirt-override.c | 125 +++
2 files changed, 138
* include/libvirt/libvirt.h.in: (Add macros for the param fields,
declare the APIs).
* src/driver.h: (New methods for the driver struct)
* src/libvirt.c: (Implement the public APIs)
* src/libvirt_public.syms: (Export the public symbols)
---
include/libvirt/libvirt.h.in | 63
Including QEMU, LXC, UML, XEN drivers.
---
src/lxc/lxc_driver.c |2 ++
src/qemu/qemu_driver.c |2 ++
src/uml/uml_driver.c |2 ++
src/xen/xen_driver.c |3 +++
4 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c
index
* src/rpc/gendispatch.pl: (virNodeSetMemoryParameters is the
the special one which needs a connection object as the first
argument, improve the generator to support it).
* daemon/remote.c: (Implement the server side handler for
virDomainGetMemoryParameters)
* src/remote/remote_driver.c:
Only implemented for linux platform.
* src/nodeinfo.h: (Declare node{Get,Set}MemoryParameters)
* src/nodeinfo.c: (Implement node{Get,Set}MemoryParameters)
* src/libvirt_private.syms: (Export those two new internal APIs to
private symbols)
---
src/libvirt_private.syms |2 +
src/nodeinfo.c
On 09/13/2012 04:52 PM, Michal Privoznik wrote:
On 13.09.2012 16:12, Martin Kletzander wrote:
This patch adds full support for EOI setting for domains. Because this
is CPU feature (flag), the model needs to be added even when it's not
specified. Fortunately this problem was already solved with
On 09/13/2012 04:52 PM, Michal Privoznik wrote:
On 13.09.2012 16:12, Martin Kletzander wrote:
New options is added to support EOI (End of Interrupt) exposure for
guests. As it makes sense only when APIC is enabled, I added this into
the apic element in features because this should be tri-state
On 09/13/2012 05:04 PM, Eric Blake wrote:
On 09/12/2012 05:00 PM, Eric Blake wrote:
On 09/12/2012 04:44 PM, Martin Kletzander wrote:
When generating RPC protocol messages, it's strictly needed to have
continuousline of numbers or RPC messages. However in case anyone
s/continuousline/a
On Fri, Sep 14, 2012 at 02:24:15PM +0800, Hu Tao wrote:
memset before virResetError will cause memory leak.
virResetError and virCopyError, which calls virResetError, will do
memset properly, so we don't have to worry about it here.
Disagree, it's a public API, we can't justify behaviour
On Fri, Sep 14, 2012 at 02:42:15PM +0800, Osier Yang wrote:
* include/libvirt/libvirt.h.in: (Add macros for the param fields,
declare the APIs).
* src/driver.h: (New methods for the driver struct)
* src/libvirt.c: (Implement the public APIs)
* src/libvirt_public.syms: (Export the public
On Fri, Sep 14, 2012 at 02:42:16PM +0800, Osier Yang wrote:
* src/rpc/gendispatch.pl: (virNodeSetMemoryParameters is the
the special one which needs a connection object as the first
argument, improve the generator to support it).
* daemon/remote.c: (Implement the server side handler for
On Fri, Sep 14, 2012 at 02:42:17PM +0800, Osier Yang wrote:
Only implemented for linux platform.
* src/nodeinfo.h: (Declare node{Get,Set}MemoryParameters)
* src/nodeinfo.c: (Implement node{Get,Set}MemoryParameters)
* src/libvirt_private.syms: (Export those two new internal APIs to
private
On Fri, Sep 14, 2012 at 02:42:18PM +0800, Osier Yang wrote:
Including QEMU, LXC, UML, XEN drivers.
---
src/lxc/lxc_driver.c |2 ++
src/qemu/qemu_driver.c |2 ++
src/uml/uml_driver.c |2 ++
src/xen/xen_driver.c |3 +++
4 files changed, 9 insertions(+), 0 deletions(-)
On Fri, Sep 14, 2012 at 02:42:19PM +0800, Osier Yang wrote:
New command node-memory-tune to get/set the node memory parameters,
only two parameters are allowed to set (pages_to_scan, and sleep_millisecs,
see documents in this patch for more details).
Example of node-memory-tune's output:
On Fri, Sep 14, 2012 at 02:42:20PM +0800, Osier Yang wrote:
* python/libvirt-override-api.xml: (Add document to describe
the APIs).
* python/libvirt-override.c: (Implement the API wrappers manually)
---
python/libvirt-override-api.xml | 13
python/libvirt-override.c | 125
Add a new member variable map_len to store map len of bitmap.
and rename size to max_bit accordingly.
rename virBitmapAlloc to virBitmapNew.
---
src/conf/domain_conf.c |2 +-
src/conf/snapshot_conf.c |2 +-
src/libvirt_private.syms |2 +-
src/qemu/qemu_capabilities.c |
In many places we store bitmap info in a chunk of data
(pointed to by a char *), and have redundant codes to
set/unset bits. This series extends virBitmap, and convert
those codes to use virBitmap.
changes:
v4:
- rename virBitmapAlloc to virBitmapNew
- rename virBitmapAllocFromData to
On Fri, Sep 14, 2012 at 03:10:13PM +0800, Daniel Veillard wrote:
On Fri, Sep 14, 2012 at 02:24:15PM +0800, Hu Tao wrote:
memset before virResetError will cause memory leak.
virResetError and virCopyError, which calls virResetError, will do
memset properly, so we don't have to worry about
---
src/conf/domain_conf.c | 148 +++---
src/conf/domain_conf.h |6 +-
src/libvirt_private.syms |1 +
src/qemu/qemu_cgroup.c |3 +-
src/qemu/qemu_driver.c | 29 +
src/qemu/qemu_process.c | 20 ---
6 files changed, 80
---
src/lxc/lxc_controller.c | 23 +
src/qemu/qemu_driver.c | 62 -
src/qemu/qemu_process.c | 85 --
src/util/processinfo.c | 36 +++-
src/util/processinfo.h |9 ++---
5
On 2012年09月14日 15:20, Daniel Veillard wrote:
On Fri, Sep 14, 2012 at 02:42:15PM +0800, Osier Yang wrote:
* include/libvirt/libvirt.h.in: (Add macros for the param fields,
declare the APIs).
* src/driver.h: (New methods for the driver struct)
* src/libvirt.c: (Implement the public APIs)
*
---
src/conf/domain_conf.c | 24 +---
src/conf/domain_conf.h |3 +--
src/lxc/lxc_controller.c | 14 ++
src/parallels/parallels_driver.c |3 +--
src/qemu/qemu_process.c | 12 +---
src/test/test_driver.c
In many places we store bitmap info in a chunk of data
(pointed to by a char *), and have redundant codes to
set/unset bits. This patch extends virBitmap, and convert
those codes to use virBitmap in subsequent patches.
---
.gitignore |1 +
src/libvirt_private.syms | 11 ++
---
src/conf/domain_conf.c | 24 +---
src/conf/domain_conf.h |2 +-
src/lxc/lxc_controller.c | 25
src/parallels/parallels_driver.c |2 +-
src/qemu/qemu_cgroup.c |7 ++---
src/qemu/qemu_cgroup.h |2 +-
---
src/conf/cpu_conf.c | 17 ++---
src/conf/cpu_conf.h |3 ++-
src/qemu/qemu_command.c | 43 +++
3 files changed, 15 insertions(+), 48 deletions(-)
diff --git a/src/conf/cpu_conf.c b/src/conf/cpu_conf.c
index 87e9540..48d5740
---
src/nodeinfo.c | 26 +++---
src/nodeinfo.h |6 +++---
src/qemu/qemu_driver.c | 19 ---
3 files changed, 26 insertions(+), 25 deletions(-)
diff --git a/src/nodeinfo.c b/src/nodeinfo.c
index e3d4a24..803b261 100644
---
virBitmap is recommanded to store cpuset info, and
virBitmapFormat/virBitmapParse can do the format/parse
jobs.
---
src/conf/domain_conf.c | 196 --
src/conf/domain_conf.h |7 --
src/libvirt_private.syms |2 -
3 files changed, 205
On Fri, Sep 14, 2012 at 03:34:29PM +0800, Hu Tao wrote:
On Fri, Sep 14, 2012 at 03:10:13PM +0800, Daniel Veillard wrote:
On Fri, Sep 14, 2012 at 02:24:15PM +0800, Hu Tao wrote:
memset before virResetError will cause memory leak.
virResetError and virCopyError, which calls
v4 - v5:
* Support filter the returned secrets by its properties
ephemeral and private.
Osier Yang (5):
list: Define new API virConnectListAllSecrets
list: Implement RPC calls for virConnectListAllSecrets
list: Implement listAllSecrets
list: Expose virConnectListAllSecrets to Python
Simply returns the object list. No filtering.
src/secret/secret_driver.c: Implement listAllSecrets
---
src/conf/secret_conf.h | 12 ++
src/secret/secret_driver.c | 82 +++-
2 files changed, 93 insertions(+), 1 deletions(-)
diff --git
The RPC generator doesn't support returning list of object yet, this patch
do the work manually.
* daemon/remote.c:
Implemente the server side handler remoteDispatchConnectListAllSecrets.
* src/remote/remote_driver.c:
Add remote driver handler remoteConnectListAllSecrets.
*
This introduce four new options for secret-list, to filter the
returned secrets by whether it's ephemeral or not, and/or by
whether it's private or not.
* tools/virsh-secret.c: (New helper vshSecretSorter,
vshSecretListFree, and vshCollectSecretList; Use the new
API for secret-list; error out
The implementation is done manually as the generator does not support
wrapping lists of C pointers into Python objects.
python/libvirt-override-api.xml: Document
python/libvirt-override-virConnect.py: Implementation for listAllSecrets.
python/libvirt-override.c: Implementation for the wrapper.
On Tue, Sep 11, 2012 at 02:13:38PM -0400, Corey Bryant wrote:
Are there any other requirements that need to be taken care of to
enable execution of QEMU guests under separate unprivileged user IDs
(ie. DAC isolation)?
At this point, this patch series (Per-guest configurable user/group
for
This is to list the secret objects. No flags are supported
include/libvirt/libvirt.h.in: Declare enum virConnectListAllSecretFlags
and virConnectListAllSecrets.
python/generator.py: Skip auto-generating
src/driver.h: (virDrvConnectListAllSecrets)
src/libvirt.c:
On 09/14/12 10:38, Osier Yang wrote:
The RPC generator doesn't support returning list of object yet, this patch
do the work manually.
s/do/does/
* daemon/remote.c:
Implemente the server side handler remoteDispatchConnectListAllSecrets.
s/Implemente/Implement/
*
On 09/14/12 10:38, Osier Yang wrote:
This is to list the secret objects. No flags are supported
This statement isn't accurate as you added filtering flags.
include/libvirt/libvirt.h.in: Declare enum virConnectListAllSecretFlags
and virConnectListAllSecrets.
From: Richard W.M. Jones rjo...@redhat.com
With this script you can run libvirt programs without needing to
install them first. You just have to do for example:
./run ./tools/virsh [args ...]
If you are already in the tools/ subdirectory, then the following
command will also work:
../run
From: Richard W.M. Jones rjo...@redhat.com
Currently we search along the hard-coded names:
SBINDIR /libvirtd
SBINDIR /libvirtd_dbg
but if the environment variable $LIBVIRTD_PATH is set to the
name of the libvirtd binary, that is used instead. Fix the
error message so it accurately reflects
On Thu, Sep 13, 2012 at 02:00:48PM -0400, Gene Czarcinski wrote:
I would like to know what the plans are for supporting dns for
virtual guests with only IPv6.
My objective is to be able to reference a virtual guest for the host
... doing ssh, scp, etc. such functions work just fine if you
On Fri, Sep 14, 2012 at 02:24:15PM +0800, Hu Tao wrote:
memset before virResetError will cause memory leak.
virResetError and virCopyError, which calls virResetError, will do
memset properly, so we don't have to worry about it here.
---
src/util/virterror.c |2 --
1 file changed, 2
In libguestfs we successfully use a ./run script which sets up the
environment so you can run libguestfs programs (internal and external
ones, in C and non-C) without needing to install anything. This adds
a similar script for libvirt.
Here is the documentation included in the script:
# With
On 09/14/12 10:38, Osier Yang wrote:
Simply returns the object list. No filtering.
Again, this statement isn't true any more.
src/secret/secret_driver.c: Implement listAllSecrets
---
src/conf/secret_conf.h | 12 ++
src/secret/secret_driver.c | 82
From: Richard W.M. Jones rjo...@redhat.com
---
.gitignore |1 +
1 file changed, 1 insertion(+)
diff --git a/.gitignore b/.gitignore
index d998f0e..56d4742 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,6 +18,7 @@
*.s
*~
.deps
+.gdb_history
.git
.git-module-status
.libs
--
1.7.10.4
On Fri, Sep 14, 2012 at 03:58:31PM +0800, Daniel Veillard wrote:
On Fri, Sep 14, 2012 at 03:34:29PM +0800, Hu Tao wrote:
On Fri, Sep 14, 2012 at 03:10:13PM +0800, Daniel Veillard wrote:
On Fri, Sep 14, 2012 at 02:24:15PM +0800, Hu Tao wrote:
memset before virResetError will cause memory
On 09/14/12 10:38, Osier Yang wrote:
The implementation is done manually as the generator does not support
wrapping lists of C pointers into Python objects.
python/libvirt-override-api.xml: Document
python/libvirt-override-virConnect.py: Implementation for listAllSecrets.
On 09/12/2012 11:16 AM, g...@czarc.net wrote:
From: Gene Czarcinski g...@czarc.net
For networks which dnsmasq has --listen-address specified, add
the command line parameter so that any dns PTR queries for those
networks are not forwarded.
Are you certain this will never be desired? If
On 09/13/2012 06:16 AM, Shradha Shah wrote:
On 09/11/2012 08:07 PM, Laine Stump wrote:
If so, one issue I have is that one of the devices (the
pci-passthrough?) doesn't have its guest-side PCI address visible
anywhere in the guest's XML, does it? This is problematic, because
management
On Fri, Sep 14, 2012 at 03:46:56PM +0800, Hu Tao wrote:
Add a new member variable map_len to store map len of bitmap.
and rename size to max_bit accordingly.
rename virBitmapAlloc to virBitmapNew.
---
src/conf/domain_conf.c |2 +-
src/conf/snapshot_conf.c |2 +-
On Fri, Sep 14, 2012 at 03:46:57PM +0800, Hu Tao wrote:
In many places we store bitmap info in a chunk of data
(pointed to by a char *), and have redundant codes to
set/unset bits. This patch extends virBitmap, and convert
those codes to use virBitmap in subsequent patches.
---
.gitignore
On Fri, Sep 14, 2012 at 03:46:58PM +0800, Hu Tao wrote:
---
src/conf/domain_conf.c | 148
+++---
src/conf/domain_conf.h |6 +-
src/libvirt_private.syms |1 +
src/qemu/qemu_cgroup.c |3 +-
src/qemu/qemu_driver.c | 29 +
On Fri, Sep 14, 2012 at 03:46:59PM +0800, Hu Tao wrote:
---
src/lxc/lxc_controller.c | 23 +
src/qemu/qemu_driver.c | 62 -
src/qemu/qemu_process.c | 85
--
src/util/processinfo.c | 36
On Fri, Sep 14, 2012 at 03:47:00PM +0800, Hu Tao wrote:
---
src/conf/domain_conf.c | 24 +---
src/conf/domain_conf.h |2 +-
src/lxc/lxc_controller.c | 25
src/parallels/parallels_driver.c |2 +-
src/qemu/qemu_cgroup.c
On Fri, Sep 14, 2012 at 03:47:02PM +0800, Hu Tao wrote:
---
src/conf/cpu_conf.c | 17 ++---
src/conf/cpu_conf.h |3 ++-
src/qemu/qemu_command.c | 43 +++
3 files changed, 15 insertions(+), 48 deletions(-)
ACK
Daniel
--
|:
On Fri, Sep 14, 2012 at 03:47:03PM +0800, Hu Tao wrote:
---
src/nodeinfo.c | 26 +++---
src/nodeinfo.h |6 +++---
src/qemu/qemu_driver.c | 19 ---
3 files changed, 26 insertions(+), 25 deletions(-)
ACK
Daniel
--
|:
On Fri, Sep 14, 2012 at 03:47:04PM +0800, Hu Tao wrote:
virBitmap is recommanded to store cpuset info, and
virBitmapFormat/virBitmapParse can do the format/parse
jobs.
---
src/conf/domain_conf.c | 196
--
src/conf/domain_conf.h |7 --
On Fri, Sep 14, 2012 at 03:47:01PM +0800, Hu Tao wrote:
---
src/conf/domain_conf.c | 24 +---
src/conf/domain_conf.h |3 +--
src/lxc/lxc_controller.c | 14 ++
src/parallels/parallels_driver.c |3 +--
On 09/14/12 10:38, Osier Yang wrote:
This introduce four new options for secret-list, to filter the
s/introduce/introduces/
returned secrets by whether it's ephemeral or not, and/or by
whether it's private or not.
* tools/virsh-secret.c: (New helper vshSecretSorter,
vshSecretListFree,
On Thu, Sep 13, 2012 at 10:31:09AM -0600, Eric Blake wrote:
On 09/11/2012 08:11 AM, Daniel P. Berrange wrote:
From: Daniel P. Berrange berra...@redhat.com
Introduce a qemuCapsNewForBinary() API which creates a new
QEMU capabilities object, populated with data relating to
a specific
Newly added if branch for kvm_pv_eoi did not set the ret variable.
---
src/qemu/qemu_command.c |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index ec825bc..d0c8e22 100644
--- a/src/qemu/qemu_command.c
+++
On 2012年09月14日 20:50, Ján Tomko wrote:
Newly added if branch for kvm_pv_eoi did not set the ret variable.
---
src/qemu/qemu_command.c |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index ec825bc..d0c8e22 100644
---
On 09/13/12 08:54, Osier Yang wrote:
This is to list the node device objects, supports to filter the results
by capability types.
include/libvirt/libvirt.h.in: Declare enum virConnectListAllNodeDeviceFlags
and virConnectListAllNodeDevices.
python/generator.py:
On 09/14/12 11:47, Peter Krempa wrote:
On 09/14/12 10:38, Osier Yang wrote:
This is to list the secret objects. No flags are supported
This statement isn't accurate as you added filtering flags.
include/libvirt/libvirt.h.in: Declare enum virConnectListAllSecretFlags
On 2012年09月14日 20:55, Osier Yang wrote:
On 2012年09月14日 20:50, Ján Tomko wrote:
Newly added if branch for kvm_pv_eoi did not set the ret variable.
---
src/qemu/qemu_command.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
On 09/13/12 08:56, Osier Yang wrote:
This improve helper vshStringToArray to accept const string as
s/improve/improves/
argument instead. To not convert the const string when using
vshStringToArray, and thus avoid motifying it.
I'd write the last sentence as:
This avoids modifying const
From: Richard W.M. Jones rjo...@redhat.com
libvirt skips labelling these, for unknown reasons. This breaks
libguestfs. Adding this and some SELinux rules (RHBZ#857453) fixes
everything for me.
---
src/security/security_selinux.c | 12 ++--
1 file changed, 2 insertions(+), 10
On 09/14/2012 04:40 AM, Daniel P. Berrange wrote:
On Tue, Sep 11, 2012 at 02:13:38PM -0400, Corey Bryant wrote:
Are there any other requirements that need to be taken care of to
enable execution of QEMU guests under separate unprivileged user IDs
(ie. DAC isolation)?
At this point, this
On Fri, Sep 14, 2012 at 02:31:44PM +0100, Richard W.M. Jones wrote:
From: Richard W.M. Jones rjo...@redhat.com
libvirt skips labelling these, for unknown reasons. This breaks
libguestfs. Adding this and some SELinux rules (RHBZ#857453) fixes
everything for me.
---
On Fri, Sep 14, 2012 at 09:31:26AM -0400, Corey Bryant wrote:
On 09/14/2012 04:40 AM, Daniel P. Berrange wrote:
On Tue, Sep 11, 2012 at 02:13:38PM -0400, Corey Bryant wrote:
Are there any other requirements that need to be taken care of to
enable execution of QEMU guests under separate
On 09/13/12 08:59, Osier Yang wrote:
tools/virsh-nodedev.c:
* vshNodeDeviceSorter to sort node devices by name
* vshNodeDeviceListFree to free the node device objects list.
* vshNodeDeviceListCollect to collect the node device objects, trying
to use new API first, fall back to
On 09/13/2012 02:19 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:46:43PM +0200, Wido den Hollander wrote:
On 09/10/2012 03:23 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:00:57PM +0200, Wido den Hollander wrote:
On 09/10/2012 02:29 PM, Daniel Veillard wrote:
any idea how to
On Fri, Sep 14, 2012 at 02:40:39PM +0100, Daniel P. Berrange wrote:
On Fri, Sep 14, 2012 at 02:31:44PM +0100, Richard W.M. Jones wrote:
From: Richard W.M. Jones rjo...@redhat.com
libvirt skips labelling these, for unknown reasons. This breaks
libguestfs. Adding this and some SELinux
From: Richard W.M. Jones rjo...@redhat.com
libvirt skips labelling these, for unknown reasons. This breaks
libguestfs. Adding this and some SELinux rules (RHBZ#857453) fixes
everything for me.
---
src/security/security_selinux.c | 17 +
1 file changed, 17 insertions(+)
diff
On 09/13/2012 02:19 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:46:43PM +0200, Wido den Hollander wrote:
On 09/10/2012 03:23 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:00:57PM +0200, Wido den Hollander wrote:
On 09/10/2012 02:29 PM, Daniel Veillard wrote:
any idea how to
On Fri, Sep 14, 2012 at 04:01:55PM +0200, Wido den Hollander wrote:
On 09/13/2012 02:19 PM, Daniel Veillard wrote:
[...]
Come to think of it, a 0.4.9 release under MIT would however be
preferable for CloudStack 4.0.
Okay, you get it, it's out, can you check maven is working,
I had to do
Including QEMU, LXC, UML, XEN drivers.
---
src/lxc/lxc_driver.c |2 ++
src/qemu/qemu_driver.c |2 ++
src/uml/uml_driver.c |2 ++
src/xen/xen_driver.c |3 +++
4 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c
index
* include/libvirt/libvirt.h.in: (Add macros for the param fields,
declare the APIs).
* src/driver.h: (New methods for the driver struct)
* src/libvirt.c: (Implement the public APIs)
* src/libvirt_public.syms: (Export the public symbols)
---
include/libvirt/libvirt.h.in | 63
v1:
https://www.redhat.com/archives/libvir-list/2012-September/msg00517.html
v1 - v2:
* Rename virNode{Get,Set}SharedMemoryParameters to
virNode{Get,Set}MemoryParameters, in case of we could add more
node memory tunables in future.
v2 - v3:
* Add prefix shm_ to the shared memory
Only implemented for linux platform.
* src/nodeinfo.h: (Declare node{Get,Set}MemoryParameters)
* src/nodeinfo.c: (Implement node{Get,Set}MemoryParameters)
* src/libvirt_private.syms: (Export those two new internal APIs to
private symbols)
---
src/libvirt_private.syms |2 +
src/nodeinfo.c
* python/libvirt-override-api.xml: (Add document to describe
the APIs).
* python/libvirt-override.c: (Implement the API wrappers manually)
---
python/libvirt-override-api.xml | 13
python/libvirt-override.c | 125 +++
2 files changed, 138
New command node-memory-tune to get/set the node memory parameters,
only two parameters are allowed to set (pages_to_scan, and sleep_millisecs,
see documents in this patch for more details).
Example of node-memory-tune's output:
Shared memory:
pages_to_scan 100
sleep_millisecs
On 09/14/2012 09:51 AM, Daniel P. Berrange wrote:
On Fri, Sep 14, 2012 at 09:31:26AM -0400, Corey Bryant wrote:
On 09/14/2012 04:40 AM, Daniel P. Berrange wrote:
On Tue, Sep 11, 2012 at 02:13:38PM -0400, Corey Bryant wrote:
Are there any other requirements that need to be taken care of to
* src/rpc/gendispatch.pl: (virNodeSetMemoryParameters is the
the special one which needs a connection object as the first
argument, improve the generator to support it).
* daemon/remote.c: (Implement the server side handler for
virDomainGetMemoryParameters)
* src/remote/remote_driver.c:
On Fri, Sep 14, 2012 at 04:18:21PM +0200, Wido den Hollander wrote:
On 09/13/2012 02:19 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:46:43PM +0200, Wido den Hollander wrote:
On 09/10/2012 03:23 PM, Daniel Veillard wrote:
On Mon, Sep 10, 2012 at 03:00:57PM +0200, Wido den Hollander
virNWFilterSnoopAdjustPoll() uses a struct pollfd but poll.h is never included
nwfilter/nwfilter_dhcpsnoop.c:1297: error: 'struct pollfd' declared inside
parameter list
---
src/nwfilter/nwfilter_dhcpsnoop.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git
On 09/12/2012 04:03 AM, Ján Tomko wrote:
---
src/qemu/qemu_command.c | 11 +++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index a83d6de..c50c306 100644
--- a/src/qemu/qemu_command.c
+++
From: Daniel P. Berrange berra...@redhat.com
If the qemuBuildCommandLine method raised an error before the
virCommandPtr instance was created, the local var would not
be initialized, resulting in a possible SEGV in the error
cleanup branch. Also add some debugging of the method params
---
This is a followup to
https://www.redhat.com/archives/libvir-list/2012-September/msg00643.html
As of QEMU 1.2 libvirt is supposed to stop parsing -help and instead
use various QMP commands to detect capabilities. Before we can do this,
the current QEMU capabilities code needs a serious cleanup
From: Daniel P. Berrange berra...@redhat.com
Remove all use of the existing APIs for querying QEMU
capability flags. Instead obtain a qemuCapsPtr object
from the global cache. This avoids the execution of
'qemu -help' (and related commands) when launching new
guests.
Signed-off-by: Daniel P.
From: Daniel P. Berrange berra...@redhat.com
When building up a virCapsPtr instance, the QEMU driver
was copying the list of machine types across from the
previous virCapsPtr instance, if the QEMU binary had not
changed. Replace this ad-hoc caching of data with use
of the new qemuCapsCache global
From: Daniel P. Berrange berra...@redhat.com
Add a new qemuMonitorGetCPUCommands() method to support invocation
of the 'query-cpu-definitions' JSON monitor command. No HMP equivalent
is required, since this will only be used when JSON is available
The existing qemuMonitorJSONCheckCommands()
From: Daniel P. Berrange berra...@redhat.com
Currently the qemuCapsParseDeviceStr method has a bunch of open
coded string searches/comparisons to detect devices and their
properties. Soon this data will be obtained from QMP queries
instead of -device help output. Maintaining the list of device
From: Daniel P. Berrange berra...@redhat.com
Add a new qemuMonitorGetMachines() method to support invocation
of the 'query-machines' JSON monitor command. No HMP equivalent
is required, since this will only be present for QEMU = 1.2
Signed-off-by: Daniel P. Berrange berra...@redhat.com
---
From: Daniel P. Berrange berra...@redhat.com
When launching a QEMU guest the binary is probed to discover
the list of supported CPU names. Remove this probing with a
simple lookup of CPU models in the qemuCapsPtr object. This
avoids another invocation of the QEMU binary during the
startup path.
From: Daniel P. Berrange berra...@redhat.com
Add a new qemuMonitorGetObjectTypes() method to support invocation
of the 'qom-list' JSON monitor command. No HMP equivalent
is required, since this will only be present for QEMU = 1.2
Signed-off-by: Daniel P. Berrange berra...@redhat.com
---
From: Daniel P. Berrange berra...@redhat.com
Introduce a qemuCapsCachePtr object to provide a global cache
of capabilities for QEMU binaries. The cache auto-populates
on first request for capabilities about a binary, and will
auto-refresh if the binary has changed since a previous cache
was
1 - 100 of 156 matches
Mail list logo