On 09/18/2009 03:09 AM, Charles Duffy wrote:
Daniel P. Berrange wrote:
Hmm, bad error message :-( We might also need todo a chown()
in the restore path to allow QEMU to read it. NB there is no
compatability between QEMU version, so if you have upgraded
your install of QEMU between the time you s
2009/9/24 Daniel P. Berrange :
>
> Outside the scope of your patches, I think it would be
> worth adding a 'name' attribute to all devices in the
> libvirt XML as a standardized unique identifier. We
> already have to keep track of a 'name' internally for
> NIC hotplug with QEMU, and with QEMU's qd
Chris Lalancette wrote:
I didn't see the error about the virStrcpy one, so I would still be curious as
to what you are seeing there.
As the context of the patch implies, this was a link-time issue -- but I
find myself unable to reproduce it. I'll continue this thread should
that change in the
2009/9/24 Daniel P. Berrange :
> * src/libvirt.c: Remove hand-crafted UUID parsers in favour of
> calling virParseUUID
s/virParseUUID/virUUIDParse/
> ---
> src/libvirt.c | 56 +---
> 1 files changed, 5 insertions(+), 51 deletions(-)
>
> diff
The stack trace is as follows:
Program received signal SIGABRT, Aborted.
0x0035ad830265 in raise () from /lib64/libc.so.6
(gdb) bt
#0 0x0035ad830265 in raise () from /lib64/libc.so.6
#1 0x0035ad831d10 in abort () from /lib64/libc.so.6
#2 0x0035ad86a84b in __libc_message () from
Pritesh Kothari wrote:
>> it seems openSuSE 11.1 does not come with a pkgconfig for the
>> device-mapper-devel package. I created a bug [1] for opensuse but was
>> also told to mention it here so configure.in could be patched once the
>> bug was fixed.
>>
>
> Hi All,
>
> Just fixed this for ub
I've been looking at implementing a libudev backed node device, and I
noticed that the devicekit node device backend doesn't build. Since I
believe DeviceKit is deprecated for this sort of use, and AFAIK the
DeviceKit support was never functionally equivalent to the HAL support,
I'm wondering
* src/libvirt.c: Remove hand-crafted UUID parsers in favour of
calling virParseUUID
---
src/libvirt.c | 56 +---
1 files changed, 5 insertions(+), 51 deletions(-)
diff --git a/src/libvirt.c b/src/libvirt.c
index 9fb0617..74d62a4 100644
--- a
Pull out all the QEMU monitor interaction code to a separate
file. This will make life easier when we need to drop in a
new implementation for the forthcoming QMP machine friendly
monitor support.
Next step is to add formal APIs for each monitor command,
and remove direct commands for sending/rece
* src/qemu/qemu_conf.c: Remove separator from qemuBuildNicStr()
args, and remove hardcoded 'nic' prefix. Leave it upto callers
instead
* src/qemu/qemu_driver.c: Switch over to using the new
qemuMonitorAddPCINetwork() method for NIC hotplug
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: A
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Add new
qemuMonitorGetMigrationStatus() command.
* src/qemu/qemu_driver.c: Use new qemuMonitorGetMigrationStatus()
command to check completion status.
---
src/qemu/qemu_driver.c | 15 +--
src/qemu/qemu_monitor_text.c | 91 ++
* src/qemu/qemu_conf.h, src/qemu/qemu_conf.c: Remove prefix arg
from qemuBuildHostNetStr which is no longer required
* src/qemu/qemu_driver.c: Refactor to use qemuMonitorAddHostNetwork()
API for adding host network
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Add new
qemuMonitorAddHost
* src/qemu/qemu_driver.c: Remove use of 'system_powerdown'
* src/qemu/qemu_monitor.h, src/qemu/qemu_monitor.c: Add a new
qemuMonitorSystemPowerdown() api call
---
src/qemu/qemu_driver.c |8 ++--
src/qemu/qemu_monitor_text.c | 14 ++
src/qemu/qemu_monitor_text.h |2
* src/qemu/qemu_monitor.h, src/qemu/qemu_monitor.c: Add new APIs
qemuMonitorSaveVirtualMemory() and qemuMonitorSavePhysicalMemory()
* src/qemu/qemu_driver.c: Use the new qemuMonitorSaveVirtualMemory()
and qemuMonitorSavePhysicalMemory() APIs
---
src/qemu/qemu_driver.c | 21
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Add new
qemuMonitorSetBalloon() based on existing code in
qemudDomainSetMemoryBalloon
* src/qemu/qemu_driver.c: Remove use of qemudDomainSetMemoryBalloon()
in favour of qemuMonitorSetBalloon(). Fix error code when balloon
is not supported
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Add new APis
qemuMonitorChangeMedia and qemuMonitorEjectMedia. Pull in code
for qemudEscape
* src/qemu/qemu_driver.c: Remove code that directly issues 'eject'
and 'change' commands in favour of API calls.
---
src/qemu/qemu_driver.c |
* src/qemu/qemu_monitor.h, src/qemu/qemu_monitor.c: Add new
qemuMonitorRemoveHostNetwork() command for removing host
networks
* src/qemu/qemu_driver.c: Convert NIC hotplug methods over
to use qemuMonitorRemoveHostNetwork()
---
src/qemu/qemu_driver.c | 65 ++---
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Pull old
qemudDomainGetMemoryBalloon() code into a new method called
qemuMonitorGetBalloonInfo()
* src/qemu/qemu_driver.c: Update to call qemuMonitorGetBalloonInfo()
and remove qemudDomainGetMemoryBalloon().
---
src/qemu/qemu_driver.c
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Rename
Rename qemudMonitorSendCont to qemuMonitorStartCPUs
* src/qemu/qemu_driver.c: Update callers for new name
---
src/qemu/qemu_driver.c | 18 +-
src/qemu/qemu_monitor_text.c |2 +-
src/qemu/qemu_monitor_text.h |
* src/qemu/qemu_monitor_text.c: Always print command and reply
in qemuMonitorCommandWithHandler. Print all args in each monitor
command API & remove redundant relpy printing
---
src/qemu/qemu_monitor_text.c | 82 ++---
1 files changed, 60 insertions(+), 22
* src/qemu/qemu_driver.c: Use new qemuMonitorSetMigrationSpeed()
API during migration
* src/qemu/qemu_monitor.h, src/qemu/qemu_monitor.c: Add new
qemuMonitorSetMigrationSpeed() API
---
src/qemu/qemu_driver.c | 11 +++
src/qemu/qemu_monitor_text.c | 28
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Add new API
qemuMonitorMigrateToHost() for doing TCP migration
* src/qemu/qemu_driver.c: Convert to use qemuMonitorMigrateToHost().
Also handle proper URIs (tcp:// as well as tcp:)
---
src/qemu/qemu_driver.c | 40 -
* src/qemu/qemu_monitor.h, src/qemu/qemu_monitor.c: Add a new
qemuMonitorGetCPUInfo() command
* src/qemu/qemu_driver.c: Refactor qemudDetectVcpuPIDs to
use qemuMonitorGetCPUInfo()
---
src/qemu/qemu_driver.c | 114 ++
src/qemu/qemu_monitor_text.c |
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Add a new
qemuMonitorGetBlockStatsInfo() command
* src/qemu/qemu_driver.c: Remove directly use of blockstats in
favour of calling qemuMonitorGetBlockStatsInfo()
---
src/qemu/qemu_driver.c | 95 +++--
sr
In the QEMU driver source code the methods which talk to the QEMU
monitor currently all just call qemudMonitorCommand() directly
with the raw command string, and then parse the raw reply.
In the not too distant future QEMU is introducing a new machine
parsable monitor syntax. With the current way
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Add new
qemuMonitorAddUSBDisk() API
* src/qemu/qemu_driver.c: Switch USB disk hotplug to the new
src/qemu/qemu_driver.c API.
---
src/qemu/qemu_driver.c | 41 ++-
src/qemu/qemu_monitor_text.c | 43
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Add a
new qemuMonitorSetVNCPassword() API
* src/qemu/qemu_driver.c: Refactor qemudInitPasswords to
call qemuMonitorSetVNCPassword()
---
src/qemu/qemu_driver.c | 24
src/qemu/qemu_monitor_text.c | 15
* src/qemu/qemu_driver.c: Fix crash in scenario where XML
parsing of hotplugged device failed & thus 'dev' is NULL
---
src/qemu/qemu_driver.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index da72913..7dc9353 100644
--
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Add new API
qemuMonitorRemovePCIDevice() for removing PCI device
* src/qemu/qemu_driver.c: Convert all places removing PCI devices
over to new qemuMonitorRemovePCIDevice() API
---
src/qemu/qemu_driver.c | 120 --
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Add new
API qemuMonitorAddPCIHostDevice()
* src/qemu/qemu_driver.c: Switch to using qemuMonitorAddPCIHostDevice()
for PCI host device hotplug
---
src/qemu/qemu_driver.c | 46 +++-
src/qemu/qemu_monitor_text.c | 121 ++
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Add new
API qemuMonitorAddPCIDisk()
* src/qemu/qemu_driver.c: Convert over to using the new
qemuMonitorAddPCIDisk() method, and remove now obsolete
qemudEscape() method
---
src/qemu/qemu_driver.c | 130 ++-
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Add new
qemuMonitorMigrateToCommand() API
* src/qemu/qemu_driver.c: Switch over to using the
qemuMonitorMigrateToCommand() API for core dumps and save
to file APIs
---
src/libvirt_private.syms |1 +
src/qemu/qemu_driver.c | 1
One API adds an exact device based on bus+dev, the other adds
any device matching vendor+product
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Add new
qemuMonitorAddUSBDeviceExact() and qemuMonitorAddUSBDeviceMatch()
commands.
* src/qemu/qemu_driver.c: Switch over to using the new
qe
* src/qemu/qemu_monitor.h: Remove qemudMonitorCommand,
qemudMonitorCommandWithFd, qemudMonitorCommandWithHandler,
qemudMonitorCommandExtra low level APIs
* src/qemu/qemu_monitor.c: Replace s/qemud/qemuMonitor/
---
src/qemu/qemu_monitor_text.c | 166 ++
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Add new
qemuMonitorCloseFileHandle and qemuMonitorSendFileHandle
APIs for processing file handles
* src/qemu/qemu_driver.c: Convert NIC hotplug method over to
use qemuMonitorCloseFileHandle and qemuMonitorSendFileHandle
---
src/qemu/qemu_
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Add a new
qemuMonitorStopCPUs() API
* src/qemu/qemu_driver.c: Replace direct monitor commands for 'stop'
with qemuMonitorStopCPUs()
---
src/qemu/qemu_driver.c | 28
src/qemu/qemu_monitor_text.c | 13
On Fri, Sep 18, 2009 at 05:26:16PM +0200, Wolfgang Mauerer wrote:
> Since both disks and disk controllers can be dynamically
> added to the system, it makes sense to be also able to remove
> them.
This is the main patch which requires additional support in QEMu
if I'm understanding your patcheset
Charles Duffy wrote:
> HACKING suggests compiling with --enable-compile-warnings=error before
> submitting any patches; however, current master fails for me on this
> account (CentOS 5.3; gcc 4.1.2).
>
> Please see attached. I suspect most of these should be uncontroversial
> -- but wonder if p
On Fri, Sep 18, 2009 at 05:26:14PM +0200, Wolfgang Mauerer wrote:
> When a disk is added without an explicitly specified
> controller as host, then try to find the first available
> controller. If none exists, do not (as in previous versions)
> add a new PCI controller device with the disk attached
On Fri, Sep 18, 2009 at 05:26:12PM +0200, Wolfgang Mauerer wrote:
> This enables to hot-add disk controllers without attached
> disks into the system. Previously, it was only possible to
> (implicitly) add disk controllers in the static machine
> configuration.
>
> Notice that the actual functiona
On Fri, Sep 18, 2009 at 05:26:10PM +0200, Wolfgang Mauerer wrote:
> This augments virDomainDevice with a element
> that is used to represent disk controllers (e.g., scsi
> controllers). The XML format is given by
>
>
>
>
>
> where type denotes the disk interface (scsi, ide,...), id
> is an
On Fri, Sep 18, 2009 at 05:26:09PM +0200, Wolfgang Mauerer wrote:
> This allows us to connect a disk with a specific controller,
> which is required for disk hotadd/remove. A new XML child
> element is added to the container:
>
>
> ...
>unit=""/>
>
>
> Either id _or_ pci_addr can be sp
On Fri, Sep 18, 2009 at 05:26:08PM +0200, Wolfgang Mauerer wrote:
> The instruction "See Makefile.am" in libvirt.private_syms
> always makes me think that this file is autogenerated
> and should not be touched manually. This patch spares
> every reader of libvirt.private_syms the hassle of
> readin
On Wed, Sep 23, 2009 at 10:05:36AM +0200, Chris Lalancette wrote:
> >> We are working on a new tunnelled migration scheme that will be
> >> uniform across drivers.
> > ic - To be honest, I was confused by the migrateuri anyhow, since I
> > considered the situation where libvirt traffic is tunneled
On Wed, 2009-09-23 at 18:46 +0200, Jiri Denemark wrote:
> Signed-off-by: Jiri Denemark
> ---
> src/conf/domain_conf.h |2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
> index 09368d9..d494e54 100644
> --- a/src/conf/do
Interesting that gcc-4.41 isn't giving me any warnings
On Wed, 2009-09-23 at 12:32 -0500, Charles Duffy wrote:
> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
> index af215ca..25d983e 100644
> --- a/src/qemu/qemu_driver.c
> +++ b/src/qemu/qemu_driver.c
> @@ -6132,7 +6132,7 @@ static
Chris Lalancette wrote:
> Charles Duffy wrote:
>> HACKING suggests compiling with --enable-compile-warnings=error before
>> submitting any patches; however, current master fails for me on this
>> account (CentOS 5.3; gcc 4.1.2).
>>
>> Please see attached. I suspect most of these should be uncontr
Jiri Denemark wrote:
> Signed-off-by: Jiri Denemark
> ---
> src/conf/domain_conf.h |2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
> index 09368d9..d494e54 100644
> --- a/src/conf/domain_conf.h
> +++ b/src/conf/domain
Charles Duffy wrote:
> HACKING suggests compiling with --enable-compile-warnings=error before
> submitting any patches; however, current master fails for me on this
> account (CentOS 5.3; gcc 4.1.2).
>
> Please see attached. I suspect most of these should be uncontroversial
> -- but wonder if p
Thanks, Chris and Daniel
I corrected the code that I posted here according to your comments.
Chris, I now need to handle openvz containers by character(name) not
integer(id) at all.
diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c
index 54bcaa9..3b8505d 100644
--- a/src/op
50 matches
Mail list logo