Re: [Qemu-devel] [Qemu PATCH] add a boot option to do strict boot

2013-01-08 Thread Gleb Natapov
On Wed, Jan 09, 2013 at 03:34:27PM +0800, Amos Kong wrote: > Current seabios will try to boot from selected devices first, > if they are all failed, seabios will also try to boot from > un-selected devices. > > We need to make it configurable. I already posted a seabios > patch to add a new device

[Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2013-01-08 Thread Matt Robinson
Erik, Is this patch available for public consumption? It doesn't seem to be upstream. Thanks, #matt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1042388 Title: qemu: Unsupported syscall: 257 (ti

[Qemu-devel] [Qemu PATCH] add a boot option to do strict boot

2013-01-08 Thread Amos Kong
Current seabios will try to boot from selected devices first, if they are all failed, seabios will also try to boot from un-selected devices. We need to make it configurable. I already posted a seabios patch to add a new device type to halt booting. Qemu can add "HALT" at the end of bootindex stri

Re: [Qemu-devel] [Xen-devel] [PATCH 0/2] QEMU/xen: simplify cpu_ioreq_pio and cpu_ioreq_move

2013-01-08 Thread Pasi Kärkkäinen
On Tue, Jan 08, 2013 at 01:49:06AM +, Xu, Dongxiao wrote: > > > > > -Original Message- > > > From: Ian Jackson [mailto:ian.jack...@eu.citrix.com] > > > Sent: Saturday, December 08, 2012 12:34 AM > > > To: Ian Campbell > > > Cc: Stefano Stabellini; Xu, Dongxiao; xen-de...@lists.xensourc

[Qemu-devel] [PATCH 2/2] QEMU-AER: Qemu changes to support AER for VFIO-PCI devices

2013-01-08 Thread Pandarathil, Vijaymohan R
- Create eventfd per vfio device assigned to a guest and register an event handler - This fd is passed to the vfio_pci driver through a new ioctl - When the device encounters an error, the eventfd is signaled and the qemu eventfd handler gets invoked.

[Qemu-devel] [PATCH 1/2] VFIO-AER: Vfio-pci driver changes for supporting AER

2013-01-08 Thread Pandarathil, Vijaymohan R
- New ioctl which is used to pass the eventfd that is signaled when an error occurs in the vfio_pci_device - Register pci_error_handler for the vfio_pci driver - When the device encounters an error, the error handler registered by the vfio_pci driver g

[Qemu-devel] [PATCH 0/2] AER-KVM: Error containment of VFIO devices assigned to KVM guests

2013-01-08 Thread Pandarathil, Vijaymohan R
Add support for error containment when a VFIO device assigned to a KVM guest encounters an error. This is for PCIe devices/drivers that support AER functionality. When the host OS is notified of an error in a device either through the firmware first approach or through an interrupt handled by the A

[Qemu-devel] [PATCH 2/2] oslib-win32: add lock for localtime_r()

2013-01-08 Thread Wenchao Xia
Also switch calling of localtime() to localtime_r() in qemu code. Signed-off-by: Wenchao Xia --- block.c | 10 -- block/vvfat.c | 14 +- hw/omap1.c|2 +- oslib-win32.c |4 +++- savevm.c |4 ++-- vl.c |9 +++-- 6 files changed,

[Qemu-devel] [PATCH 1/2] oslib-win32: add lock for gmtime_r()

2013-01-08 Thread Wenchao Xia
Also changed the caller of gmtime() to gmtime_r(). Signed-off-by: Wenchao Xia --- oslib-win32.c |6 +- vl.c |4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/oslib-win32.c b/oslib-win32.c index e7e283e..74e0c52 100644 --- a/oslib-win32.c +++ b/oslib-w

[Qemu-devel] [PATCH V2 04/11] qemu-img: switch image retrieving function

2013-01-08 Thread Wenchao Xia
Now qemu-img call block layer function to get image info. v2: Seperate patch for function switching in qemu-img. Signed-off-by: Wenchao Xia --- qemu-img.c | 86 +-- 1 files changed, 2 insertions(+), 84 deletions(-) diff --git a/qemu

[Qemu-devel] [PATCH V2 03/11] block: add snapshot and image info query function

2013-01-08 Thread Wenchao Xia
This patch added function bdrv_query_image_info() and bdrv_query_snapshot_infolist(), which will return info in qmp object format. The implemetion code are mostly copied from collect_image_info() and collect_snapshot() in qemu-img.c. To help filter out snapshot info not needed, a call back func

[Qemu-devel] [PATCH V2 02/11] block: add bdrv_get_filename() function

2013-01-08 Thread Wenchao Xia
This function will simply return the uri or filename used to open the image. Reviewed-by: Eric Blake Signed-off-by: Wenchao Xia --- block.c |5 + include/block/block.h |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 4e28c5

[Qemu-devel] [PATCH V2 05/11] block: rename bdrv_query_info to bdrv_query_block_info

2013-01-08 Thread Wenchao Xia
Now that we have bdrv_query_image_info, rename this function to make it more obvious what it is doing. v2: Better commit message. Reviewed-by: Eric Blake Signed-off-by: Wenchao Xia --- block.c |4 ++-- include/block/block.h |2 +- 2 files changed, 3 insertions(+), 3 d

[Qemu-devel] [PATCH V2 06/11] qmp: add interface query-images.

2013-01-08 Thread Wenchao Xia
This mirror function will return all image info including snapshots. Now Qemu have both query-images and query-block interfaces. V2: Redesign the interface, it will show related block device name now. Added counter part in qmp-commands.hx. Using plurals in API name. Signed-off-by: Wenchao

[Qemu-devel] [PATCH V2 11/11] hmp: show snapshot on single block device

2013-01-08 Thread Wenchao Xia
This patch use block layer API to qmp snapshot info on a block device, then use the same code dumping vm snapshot info, to print in monitor. Note: This patch need previous hmp extention patch which enable info sub command take qdict * as paramter. v2: free SnapshotInfoList after usage. Sig

[Qemu-devel] [PATCH V2 09/11] hmp: export function hmp_handle_error()

2013-01-08 Thread Wenchao Xia
Signed-off-by: Wenchao Xia --- hmp.c |2 +- hmp.h |2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hmp.c b/hmp.c index 2465d9b..89a1a8c 100644 --- a/hmp.c +++ b/hmp.c @@ -23,7 +23,7 @@ #include "monitor/monitor.h" #include "ui/console.h" -static void hmp_handle_er

[Qemu-devel] [SeaBIOS PATCH v3] boot: add a new type to halt booting

2013-01-08 Thread Amos Kong
Current seabios will try to boot from selected devices first, if they are all failed, seabios will also try to boot from un-selected devices. For example: @ qemu-kvm -boot order=n,menu=on ... Guest will boot from network first, if it's failed, guest will try to boot from other un-selected devices

[Qemu-devel] [PATCH V2 10/11] hmp: retrieve info from qmp for snapshot info

2013-01-08 Thread Wenchao Xia
With this patch, hmp command info snapshot simply call a block layer funtion which will return a qmp object, and then translate it in monitor console. Now snapshot info retrieving code in qemu and qemu-tool are merged by calling same block layer function, and then they just translate the qmp to s

[Qemu-devel] [PATCH V2 08/11] qmp: add interface query-snapshots

2013-01-08 Thread Wenchao Xia
This interface now return valid internal snapshots. v2: Better tips and spelling fix in qmp-schema.json. Change name to plurals. Add counter part in qmp-commands.hx. Signed-off-by: Wenchao Xia --- block.c | 32 qapi-schema.json | 13

[Qemu-devel] [PATCH V2 07/11] block: export function bdrv_find_snapshot()

2013-01-08 Thread Wenchao Xia
This patch move it from savevm.c to block.c and export it. Signed-off-by: Wenchao Xia --- block.c | 23 +++ include/block/block.h |2 ++ savevm.c | 22 -- 3 files changed, 25 insertions(+), 22 deletions(-) diff --git a

[Qemu-devel] [PATCH V2 01/11] qemu-img: remove unused parameter in collect_image_info()

2013-01-08 Thread Wenchao Xia
Parameter *fmt was not used, so remove it. Reviewed-by: Eric Blake Signed-off-by: Wenchao Xia --- qemu-img.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 85d3740..9dab48f 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -1186,8 +1186,7

[Qemu-devel] [PATCH V2 00/11] add qmp/hmp interfaces for snapshot info

2013-01-08 Thread Wenchao Xia
This serial of patches does two things: merge some info code in qemu-img, and add following interfaces: 1) qmp: query-images 2) qmp: query-snapshots 3) hmp: show snapshot info on a single block device These patches follows the rule that use qmp to retieve information, hmp layer just do a transl

[Qemu-devel] [PATCH V2 00/11] add qmp/hmp interfaces for snapshot info

2013-01-08 Thread Wenchao Xia
This serial of patches does two things: merge some info code in qemu-img, and add following interfaces: 1) qmp: query-images 2) qmp: query-snapshots 3) hmp: show snapshot info on a single block device These patches follows the rule that use qmp to retieve information, hmp layer just do a transl

Re: [Qemu-devel] [SeaBIOS PATCH v2] boot: support strict boot and make it configurable

2013-01-08 Thread Amos Kong
On Tue, Jan 08, 2013 at 11:00:42PM -0500, Kevin O'Connor wrote: > On Wed, Dec 26, 2012 at 08:55:40AM +0800, Amos Kong wrote: > > Current seabios will try to boot from selected devices first, > > if they are all failed, seabios will also try to boot from > > un-selected devices. > > > > For example

Re: [Qemu-devel] [PATCH 1/6] snapshot: export function in block.c

2013-01-08 Thread Wenchao Xia
于 2013-1-8 18:37, Kevin Wolf 写道: > Am 08.01.2013 03:25, schrieb Wenchao Xia: >> 于 2013-1-8 0:43, Kevin Wolf 写道: >>> Am 17.12.2012 07:25, schrieb Wenchao Xia: This patch moves bdrv_snapshotfind from savevm.c to block.c and export it, also added bdrv_deappend in block.c. Signe

Re: [Qemu-devel] [PATCH 0/2] qemu-ga: don't leak fds to exec()ed processes

2013-01-08 Thread Amos Kong
On Tue, Jan 08, 2013 at 07:26:24PM -0200, Luiz Capitulino wrote: > Please, check individual patches for details. > > Luiz Capitulino (2): > qemu-ga: ga_open_pidfile(): use qemu_open() > qemu-ga: add ga_open_logfile() Acked-by: Amos Kong Tested-by: Amos Kong > qga/main.c | 19

Re: [Qemu-devel] [SeaBIOS PATCH v2] boot: support strict boot and make it configurable

2013-01-08 Thread Kevin O'Connor
On Wed, Dec 26, 2012 at 08:55:40AM +0800, Amos Kong wrote: > Current seabios will try to boot from selected devices first, > if they are all failed, seabios will also try to boot from > un-selected devices. > > For example: > @ qemu-kvm -boot order=n,menu=on ... > > Guest will boot from network f

Re: [Qemu-devel] [RFC PATCH v4 26/30] Implement qmp and hmp commands for notification lists

2013-01-08 Thread Eric Blake
On 12/18/2012 05:41 AM, Vasilis Liaskovitis wrote: > Guest can respond to ACPI hotplug events e.g. with _EJ or _OST method. > This patch implements a tail queue to store guest notifications for memory > hot-add and hot-remove requests. > > Guest responses for memory hotplug command on a per-dimm b

Re: [Qemu-devel] [PATCH 10/12] virtio-net: multiqueue support

2013-01-08 Thread Jason Wang
On 01/08/2013 07:24 PM, Wanlong Gao wrote: > On 01/08/2013 06:14 PM, Jason Wang wrote: >> On 01/08/2013 06:00 PM, Wanlong Gao wrote: >>> On 01/08/2013 05:51 PM, Jason Wang wrote: On 01/08/2013 05:49 PM, Wanlong Gao wrote: > On 01/08/2013 05:29 PM, Jason Wang wrote: >> On 01/08/2013 05:

[Qemu-devel] [PATCH v3 2/2] qdev: Prepare "realized" property

2013-01-08 Thread Andreas Färber
Introduce the QOM realizefn suggested by Anthony. Detailed documentation is supplied in the qdev header. For now this implements a default DeviceClass::realize callback that just wraps DeviceClass::init, which it deprecates. Once all devices have been converted to DeviceClass::realize, DeviceClass

[Qemu-devel] [PATCH v3 1/2] qdev: Fold state enum into bool realized

2013-01-08 Thread Andreas Färber
Whether the device was initialized or not is QOM-level information and currently unused. Drop it from device. This leaves the boolean state of whether or not DeviceClass::init was called or not, a.k.a. "realized". Suggested-by: Anthony Liguori Signed-off-by: Andreas Färber --- hw/qdev-addr.c

[Qemu-devel] [PATCH v3 0/2] QOM realize, device-only

2013-01-08 Thread Andreas Färber
Hello Anthony, Next iteration, with documentation. Available from: https://github.com/afaerber/qemu-cpu/commits/realize-qdev.v3 git://github.com/afaerber/qemu-cpu.git realize-qdev.v3 Regards, Andreas v2 -> v3: * Rebased onto qdev ObjectClass::unparent change. * Documented DeviceState::realized

Re: [Qemu-devel] [PATCH] build: change dist target to use xz

2013-01-08 Thread Anthony Liguori
Brad Smith writes: > If a compression format other than gzip is used we might > as well move to xz instead of bzip2. xz support was introduced in tar only in 2009. We only expose one source tarball and I don't think relying on something so new is a good idea. Regards, Anthoyn Liguori > > 11.

Re: [Qemu-devel] [PATCH] build: change dist target to use xz

2013-01-08 Thread Brad Smith
On Fri, Jan 04, 2013 at 08:03:05PM -0500, Brad Smith wrote: > On Fri, Jan 04, 2013 at 05:41:41PM -0700, Eric Blake wrote: > > On 01/04/2013 05:28 PM, Brad Smith wrote: > > > On Thu, Aug 02, 2012 at 06:08:15AM -0400, Brad Smith wrote: > > >> If a compression format other than gzip is used we might >

Re: [Qemu-devel] [PATCH v4 1/2] Add TEWS TPCI200 IndustryPack emulation

2013-01-08 Thread Alberto Garcia
On Wed, Jan 09, 2013 at 01:36:50AM +0100, Andreas Färber wrote: > > I also removed all accesses to internals. > > qdev->parent_bus is not supposed to be accessed either, there is > qdev_get_parent_bus() as accessor function. Yeah, that one I had also changed :) (I didn't find any accessor for q

Re: [Qemu-devel] [PATCH v4 2/2] Add GE IP-Octal 232 IndustryPack emulation

2013-01-08 Thread Alberto Garcia
On Tue, Jan 08, 2013 at 07:08:57PM +0100, Andreas Färber wrote: > On my suggestion you changed the type name from "ipoctal" to > "ipoctal232" - the file name should probably then be updated, too. > For the function prefixes inside the file it shouldn't matter as > long as they're consistent. The

Re: [Qemu-devel] [PATCH v4 1/2] Add TEWS TPCI200 IndustryPack emulation

2013-01-08 Thread Andreas Färber
Am 08.01.2013 16:57, schrieb Alberto Garcia: > On Tue, Jan 08, 2013 at 02:55:56PM +0100, Andreas Färber wrote: > >> IPACK_DEVICE() >> >> You have them defined in the header, please use them consistently. >> >> Also, please avoid accessing internals like &s->bus.qbus >> (BUS(s->bus)) or &s->dev.qde

Re: [Qemu-devel] [RFC PATCH v4 06/30] qapi: make visit_type_size fallback to type_int

2013-01-08 Thread Andreas Färber
Am 18.12.2012 13:41, schrieb Vasilis Liaskovitis: > Currently visit_type_size checks if the visitor's type_size function pointer > is > NULL. If not, it calls it, otherwise it calls v->type_uint64(). But neither of > these pointers are ever set. Fallback to calling v->type_int() in this third > (d

Re: [Qemu-devel] [RFC PATCH v4 00/30] ACPI memory hotplug

2013-01-08 Thread Andreas Färber
Am 18.12.2012 13:41, schrieb Vasilis Liaskovitis: > Because dimm layout needs to be configured on machine-boot, all dimm devices > need to be specified on startup command line (either with populated=on or with > populated=off). The dimm information is stored in dimm configuration > structures. >

[Qemu-devel] [PATCH 09/12] qemu-ga: bios_supports_mode(): improve error reporting

2013-01-08 Thread Michael Roth
From: Luiz Capitulino Most errors are QERR_UNDEFINED_ERROR today. Signed-off-by: Luiz Capitulino Reviewed-by: Michael Roth Signed-off-by: Michael Roth --- qga/commands-posix.c | 46 +++--- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git

[Qemu-devel] [PATCH 11/12] qemu-ga: execute hook to quiesce the guest on fsfreeze-freeze/thaw

2013-01-08 Thread Michael Roth
From: Tomoki Sekiyama To use the online disk snapshot for online-backup, application-level consistency of the snapshot image is required. However, currently the guest agent can provide only filesystem-level consistency, and the snapshot may contain dirty data, for example, incomplete transactions

[Qemu-devel] [PATCH 05/12] qemu-ga: build_fs_mount_list(): take an Error argument

2013-01-08 Thread Michael Roth
From: Luiz Capitulino Signed-off-by: Luiz Capitulino Signed-off-by: Michael Roth --- qga/commands-posix.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index 247e8dc..f7b85b2 100644 --- a/qga/c

[Qemu-devel] [PATCH 01/12] qemu-ga: guest_file_handle_find(): take an Error argument

2013-01-08 Thread Michael Roth
From: Luiz Capitulino Signed-off-by: Luiz Capitulino Reviewed-by: Michael Roth *Fixed missing space character in error message Signed-off-by: Michael Roth --- qga/commands-posix.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/qga/commands-posix.c

[Qemu-devel] [PATCH 03/12] qemu-ga: qmp_guest_file_*: improve error reporting

2013-01-08 Thread Michael Roth
From: Luiz Capitulino Use error_setg_errno() when possible with an improved error description. Signed-off-by: Luiz Capitulino Signed-off-by: Michael Roth --- qga/commands-posix.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/qga/commands-posix.c

[Qemu-devel] [PATCH 02/12] qemu-ga: qmp_guest_file_close(): fix fclose() error check

2013-01-08 Thread Michael Roth
From: Luiz Capitulino fclose() returns EOF on error. Signed-off-by: Luiz Capitulino Reviewed-by: Michael Roth Signed-off-by: Michael Roth --- qga/commands-posix.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index bbef66d.

Re: [Qemu-devel] [PULL] QOM CPUState patch queue 2013-01-08

2013-01-08 Thread Andreas Färber
Am 08.01.2013 23:34, schrieb Anthony Liguori: > Andreas Färber writes: > >> Am 08.01.2013 21:56, schrieb Andreas Färber: >>> Hello, >>> >>> This is my current QOM CPU patch queue. Please pull. >>> >>> It includes: >>> * CPU as a device, >>> * improvements for x86 -cpu host, >>> * cleanups and pre

[Qemu-devel] [PATCH 07/12] qemu-ga: qmp_guest_fstrim(): get rid of sprintf() + error_set()

2013-01-08 Thread Michael Roth
From: Luiz Capitulino Convert them to error_setg_errno(). Signed-off-by: Luiz Capitulino Reviewed-by: Michael Roth Signed-off-by: Michael Roth --- qga/commands-posix.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/qga/commands-posix.c b/qga/commands-posix.c

[Qemu-devel] [PATCH 04/12] qemu-ga: qmp_guest_shutdown(): improve error reporting

2013-01-08 Thread Michael Roth
From: Luiz Capitulino Most errors are QERR_UNDEFINED_ERROR. Also, adds ga_wait_child() as a future commit will use it too. Signed-off-by: Luiz Capitulino Reviewed-by: Michael Roth Signed-off-by: Michael Roth --- qga/commands-posix.c | 48 ++-- 1

Re: [Qemu-devel] [RFC PATCH v4 21/30] Implement dimm-info

2013-01-08 Thread Eric Blake
On 12/18/2012 05:41 AM, Vasilis Liaskovitis wrote: > "query-dimm-info" and "info dimm" will give current state of all dimms in the > system e.g. > > dimm0: on > dimm1: off > dimm2: off > dimm3: on > etc. > > Signed-off-by: Vasilis Liaskovitis > --- > +++ b/qapi-schema.json > @@ -2914,6 +2914,32

[Qemu-devel] [PATCH 10/12] qemu-ga: guest_suspend(): improve error reporting

2013-01-08 Thread Michael Roth
From: Luiz Capitulino Most errors are QERR_UNDEFINED_ERROR today. Signed-off-by: Luiz Capitulino Reviewed-by: Michael Roth Signed-off-by: Michael Roth --- qga/commands-posix.c | 29 ++--- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/qga/commands-p

[Qemu-devel] [PATCH 12/12] qemu-ga: sample fsfreeze hooks

2013-01-08 Thread Michael Roth
From: Tomoki Sekiyama Adds sample hook scripts for --fsfreeze-hook option of qemu-ga. - fsfreeze-hook : execute scripts in fsfreeze-hook.d/ - fsfreeze-hook.d/mysql-flush.sh.sample : quiesce MySQL before snapshot Signed-off-by: Tomoki Sekiyama Reviewed-by: Michael Roth Signed-off-by: Michae

Re: [Qemu-devel] [PATCH 2/2] qemu-ga: add ga_open_logfile()

2013-01-08 Thread Eric Blake
On 01/08/2013 02:26 PM, Luiz Capitulino wrote: > This function sets O_CLOEXEC on the log file fd so that it isn't > leaked to executed processes. > > Signed-off-by: Luiz Capitulino > --- > qga/main.c | 17 +++-- > 1 file changed, 15 insertions(+), 2 deletions(-) Reviewed-by: Eric Bl

Re: [Qemu-devel] [PATCH 1/2] qemu-ga: ga_open_pidfile(): use qemu_open()

2013-01-08 Thread Eric Blake
On 01/08/2013 02:26 PM, Luiz Capitulino wrote: > This ensures that O_CLOEXEC is passed to open(), this way the > pid file fd is not leaked to executed processes. > > Signed-off-by: Luiz Capitulino > --- > qga/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Eric Blake

[Qemu-devel] [PATCH 08/12] qemu-ga: qmp_guest_network_get_interfaces(): get rid of snprintf() + error_set()

2013-01-08 Thread Michael Roth
From: Luiz Capitulino Convert them to error_setg_errno(). Signed-off-by: Luiz Capitulino Reviewed-by: Michael Roth Signed-off-by: Michael Roth --- qga/commands-posix.c | 29 - 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/qga/commands-posix.c b/

[Qemu-devel] [PATCH 06/12] qemu-ga: qmp_guest_fsfreeze_*(): get rid of sprintf() + error_set()

2013-01-08 Thread Michael Roth
From: Luiz Capitulino Convert them to error_setg_errno(). Signed-off-by: Luiz Capitulino Reviewed-by: Michael Roth Signed-off-by: Michael Roth --- qga/commands-posix.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/qga/commands-posix.c b/qga/commands-posix.c

[Qemu-devel] [PULL 0/12] qemu-ga: error handling improvements and fsfreeze hooks

2013-01-08 Thread Michael Roth
The following changes since commit 4b274b1603e1d15ef51aedc8b6b7ebbae0b555ce: Merge remote-tracking branch 'afaerber/qom-cpu' into staging (2013-01-08 15:15:57 -0600) are available in the git repository at: git://github.com/mdroth/qemu.git qga-pull-1-8-2013 for you to fetch changes up to 9

Re: [Qemu-devel] [PATCH v8 0/2] qemu-ga: add hook to quiesce the guest on fsfreeze-freeze/thaw

2013-01-08 Thread mdroth
On Wed, Dec 12, 2012 at 12:55:47PM +0900, Tomoki Sekiyama wrote: > Hi, > > This is version 8 of the qemu-ga fsfreeze hook patchset. Thanks, applied to qga branch with some minor clarifications for the help output. > > *Changes from v7: ( http://patchwork.ozlabs.org/patch/204426/ ) > 1/2: Not c

Re: [Qemu-devel] [PULL] QOM CPUState patch queue 2013-01-08

2013-01-08 Thread Anthony Liguori
Andreas Färber writes: > Am 08.01.2013 21:56, schrieb Andreas Färber: >> Hello, >> >> This is my current QOM CPU patch queue. Please pull. >> >> It includes: >> * CPU as a device, >> * improvements for x86 -cpu host, >> * cleanups and preparations for QOM realize. >> >> Another pull is intende

Re: [Qemu-devel] [PULL] QOM CPUState patch queue 2013-01-08

2013-01-08 Thread Anthony Liguori
Pulled, thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PULL] QOM CPUState patch queue 2013-01-08

2013-01-08 Thread Andreas Färber
Am 08.01.2013 21:56, schrieb Andreas Färber: > Hello, > > This is my current QOM CPU patch queue. Please pull. > > It includes: > * CPU as a device, > * improvements for x86 -cpu host, > * cleanups and preparations for QOM realize. > > Another pull is intended before the Soft Freeze. > > Regard

[Qemu-devel] [PULL] QOM CPUState patch queue 2013-01-08

2013-01-08 Thread Andreas Färber
Hello, This is my current QOM CPU patch queue. Please pull. It includes: * CPU as a device, * improvements for x86 -cpu host, * cleanups and preparations for QOM realize. Another pull is intended before the Soft Freeze. Regards, Andreas Cc: Anthony Liguori Cc: Eduardo Habkost Cc: Igor Mammed

[Qemu-devel] [RFC PATCH] PIIX: reset the VM when the Reset Control Register's RCPU bit gets set

2013-01-08 Thread Laszlo Ersek
>From : Traditional PCI config space access is achieved by writing a 32 bit value to io port 0xcf8 to identify the bus, device, function and config register. Port 0xcfc then contains the register in question. But if you write the appropriate pair of m

[Qemu-devel] [PATCH 01/17] libqemustub: Add qemu_[un]register_reset() stubs

2013-01-08 Thread Andreas Färber
From: Eduardo Habkost This will be useful for code that don't call qemu_devices_reset() (e.g. *-user). If qemu_devices_reset() is never called, it means we don't need to keep track of the reset handler list. Signed-off-by: Eduardo Habkost Signed-off-by: Andreas Färber --- stubs/Makefile.objs

[Qemu-devel] [PATCH 14/17] qemu-common.h: Make qemu_init_vcpu() stub static inline

2013-01-08 Thread Andreas Färber
Turn the *-user macro into a no-op inline function to avoid unused-variable warnings and band-aiding #ifdef'ery. This allows to drop an #ifdef for alpha and avoids more for unicore32 and other upcoming trivial realizefn implementations. Suggested-by: Lluís Vilanova Signed-off-by: Eduardo Habkost

Re: [Qemu-devel] [PATCH 14/17] qemu-common.h: Make qemu_init_vcpu() stub static inline

2013-01-08 Thread Richard Henderson
On 01/08/2013 12:56 PM, Andreas Färber wrote: > Turn the *-user macro into a no-op inline function to avoid > unused-variable warnings and band-aiding #ifdef'ery. > > This allows to drop an #ifdef for alpha and avoids more for unicore32 > and other upcoming trivial realizefn implementations. > >

[Qemu-devel] [PATCH 07/17] target-i386: kvm: -cpu host: Use GET_SUPPORTED_CPUID for SVM features

2013-01-08 Thread Andreas Färber
From: Eduardo Habkost The existing -cpu host code simply sets every bit inside svm_features (initializing it to -1), and that makes it impossible to make the enforce/check options work properly when the user asks for SVM features explicitly in the command-line. So, instead of initializing svm_fe

[Qemu-devel] [PATCH 0/2] qemu-ga: don't leak fds to exec()ed processes

2013-01-08 Thread Luiz Capitulino
Please, check individual patches for details. Luiz Capitulino (2): qemu-ga: ga_open_pidfile(): use qemu_open() qemu-ga: add ga_open_logfile() qga/main.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) -- 1.8.0

[Qemu-devel] [PATCH 2/2] qemu-ga: add ga_open_logfile()

2013-01-08 Thread Luiz Capitulino
This function sets O_CLOEXEC on the log file fd so that it isn't leaked to executed processes. Signed-off-by: Luiz Capitulino --- qga/main.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/qga/main.c b/qga/main.c index e4245cc..15be74f 100644 --- a/qga/main

[Qemu-devel] [PATCH 1/2] qemu-ga: ga_open_pidfile(): use qemu_open()

2013-01-08 Thread Luiz Capitulino
This ensures that O_CLOEXEC is passed to open(), this way the pid file fd is not leaked to executed processes. Signed-off-by: Luiz Capitulino --- qga/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qga/main.c b/qga/main.c index ba5fa1c..e4245cc 100644 --- a/qga/main.c

Re: [Qemu-devel] [PATCH qom-cpu 0/7] QOM CPUState, part 7: CPU_COMMON for topology

2013-01-08 Thread Eduardo Habkost
On Mon, Jan 07, 2013 at 06:18:14PM +0100, Andreas Färber wrote: > Am 19.12.2012 16:31, schrieb Andreas Färber: > > Hello, > > > > This series moves more fields from CPU_COMMON / CPU*State to CPUState, > > allowing access from target-independent code. It is an intermediate step in > > the effort to

[Qemu-devel] [PATCH 08/17] target-i386: kvm: Enable all supported KVM features for -cpu host

2013-01-08 Thread Andreas Färber
From: Eduardo Habkost When using -cpu host, we don't need to use the kvm_default_features variable, as the user is explicitly asking QEMU to enable all feature supported by the host. This changes the kvm_cpu_fill_host() code to use GET_SUPPORTED_CPUID to initialize the kvm_features field, so we

[Qemu-devel] [PATCH 10/17] target-i386: check/enforce: Do not ignore "hypervisor" flag

2013-01-08 Thread Andreas Färber
From: Eduardo Habkost We don't need any hack to ignore CPUID_EXT_HYPERVISOR anymore, because kvm_arch_get_supported_cpuid() now sets CPUID_EXT_HYPERVISOR properly. So, this shouldn't introduce any behavior change, but it makes the code simpler. Signed-off-by: Eduardo Habkost Reviewed-by: Gleb N

[Qemu-devel] [PATCH 11/17] target-i386: check/enforce: Check all CPUID.80000001H.EDX bits

2013-01-08 Thread Andreas Färber
From: Eduardo Habkost I have no idea why PPRO_FEATURES was being ignored on the check of the CPUID.8001H.EDX bits. I believe it was a mistake, and it was supposed to be ~(PPRO_FEATURES & CPUID_EXT2_AMD_ALIASES) or just ~CPUID_EXT2_AMD_ALIASES, because some time ago kvm_cpu_fill_host() used th

[Qemu-devel] [PATCH 04/17] qdev: Include qdev code into *-user, too

2013-01-08 Thread Andreas Färber
From: Eduardo Habkost The code depends on some functions from qemu-option.o, so add qemu-option.o to universal-obj-y to make sure it's included. Signed-off-by: Eduardo Habkost Signed-off-by: Andreas Färber --- Makefile.objs|8 hw/Makefile.objs |9 +++-- 2 Dateien geän

[Qemu-devel] [PATCH 02/17] libqemustub: vmstate register/unregister stubs

2013-01-08 Thread Andreas Färber
From: Eduardo Habkost Add vmstate stub functions, so that qdev.o can be used without savevm.o when vmstate support is not necessary (i.e. by *-user). Signed-off-by: Eduardo Habkost Signed-off-by: Andreas Färber --- stubs/Makefile.objs |1 + stubs/vmstate.c | 17 + 2

[Qemu-devel] [PATCH 16/17] target-i386: Sanitize AMD's ext2_features at realize time

2013-01-08 Thread Andreas Färber
From: Igor Mammedov When CPU properties are implemented, ext2_features may change between object_new(CPU) and cpu_realize_fn(). Sanitizing ext2_features for AMD based CPU at realize() time will keep current behavior after CPU features are converted to properties. Signed-off-by: Igor Mammedov Re

[Qemu-devel] [PATCH 15/17] target-i386: Filter out unsupported features at realize time

2013-01-08 Thread Andreas Färber
From: Igor Mammedov Signed-off-by: Eduardo Habkost Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost Signed-off-by: Andreas Färber --- target-i386/cpu.c | 31 --- 1 Datei geändert, 16 Zeilen hinzugefügt(+), 15 Zeilen entfernt(-) diff --git a/target-i386

[Qemu-devel] [PATCH 09/17] target-i386: check/enforce: Fix CPUID leaf numbers on error messages

2013-01-08 Thread Andreas Färber
From: Eduardo Habkost The -cpu check/enforce warnings are printing incorrect information about the missing flags. There are no feature flags on CPUID leaves 0 and 0x8000, but there were references to 0 and 0x8000 in the table at kvm_check_features_against_host(). This changes the model_f

[Qemu-devel] [PATCH 13/17] target-i386: check/enforce: Eliminate check_feat field

2013-01-08 Thread Andreas Färber
From: Eduardo Habkost Now that all entries have check_feat=~0 in kvm_check_features_against_host(), we can eliminate check_feat entirely and make the code check all bits. This patch shouldn't introduce any behavior change, as check_feat is set to ~0 on all entries. Signed-off-by: Eduardo Habkos

[Qemu-devel] [PATCH 17/17] target-i386: Explicitly set vendor for each built-in cpudef

2013-01-08 Thread Andreas Färber
From: Igor Mammedov Since cpudef config is not supported anymore and all remaining sources now always set x86_def_t.vendor[123] fields, remove setting default vendor to simplify future re-factoring. Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost Signed-off-by: Andreas Färber --- t

[Qemu-devel] [PATCH 05/17] qdev: Don't assume existence of parent bus on unparenting

2013-01-08 Thread Andreas Färber
Commit 667d22d1ae59da46b4c1fbd094ca61145f19b8c3 (qdev: move bus removal to object_unparent) made the assumption that at unparenting time parent_bus is not NULL. This assumption is unjustified since object_unparent() may well be called directly after object_initialize(), without any qdev_set_parent_

[Qemu-devel] [PATCH 12/17] target-i386: check/enforce: Check SVM flag support as well

2013-01-08 Thread Andreas Färber
From: Eduardo Habkost When nested SVM is supported, the kernel returns the SVM flag on GET_SUPPORTED_CPUID[1], so we can check the SVM flag safely in kvm_check_features_against_host(). I don't know why the original code ignored the SVM flag. Maybe it was because kvm_cpu_fill_host() used the CPUI

[Qemu-devel] [PATCH 06/17] cpu: Change parent type to Device

2013-01-08 Thread Andreas Färber
From: Eduardo Habkost This finally makes the CPU class a subclass of the Device class, allowing us to start using DeviceState properties on CPU subclasses. It has no_user=1, as creating CPUs using -device doesn't work yet. Signed-off-by: Igor Mammedov Signed-off-by: Eduardo Habkost Signed-off

[Qemu-devel] [PATCH 03/17] libqemustub: sysbus_get_default() stub

2013-01-08 Thread Andreas Färber
From: Eduardo Habkost The stub will be used on cases where sysbus.c is not compiled in (e.g. *-user). Note that code that uses NULL as the bus with qdev{_try,}_create() implicitly uses sysbus_get_default() as the bus, and will still require sysbus.c to be compiled in. Signed-off-by: Eduardo Hab

Re: [Qemu-devel] [PULL 00/32] usb patch queue

2013-01-08 Thread Anthony Liguori
Pulled, thanks. N.B. This note may be extraneous because the pull request was sent by a version of git older than 1.7.9 making the pull request ambigious. Please consider upgrading to a newer version of git. Regards, Anthony Liguori

Re: [Qemu-devel] [PULL 0/4] Net patches

2013-01-08 Thread Anthony Liguori
Pulled, thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH 1/1] exec: make -mem-path filenames deterministic

2013-01-08 Thread Peter Maydell
On 8 January 2013 19:04, Anthony Liguori wrote: > This is an internal detail between Xen and QEMU. That doesn't mean it's > a general public API. > > I'm fairly certain that Xen does not support arbitrary versions of QEMU > to be used as qemu-dm. I would have thought that would be a large part o

[Qemu-devel] [PATCH v3 1/1] memory: add name in AddressSpace initialization.

2013-01-08 Thread Alexander Barabash
Pass the AddressSpace's name (to be used for debugging) to address_space_init(). If NULL is passed, the name of root memory region is used instead. Signed-off-by: Alexander Barabash --- exec.c|6 ++ hw/pci/pci.c |3 ++- include/exec/memory.h |5 +++-- mem

Re: [Qemu-devel] [PATCH 1/1] exec: make -mem-path filenames deterministic

2013-01-08 Thread Anthony Liguori
Peter Feiner writes: >> This is not reasonable IMHO. >> >> I was okay with sticking a name on a ramblock, but encoding a guest PA >> offset turns this into a supported ABI which I'm not willing to do. >> >> A one line change is one thing, but not a complex new option that >> introduces an ABI onl

[Qemu-devel] [PATCH v2 1/1] chardev: Support abstract socket namespace in AF_UNIX socket family.

2013-01-08 Thread Alexander Barabash
The abstract socket namespace is a nonportable Linux extension. The sockets' names in this namespace have no connection with file system pathnames. To specify a named AF_UNIX socket in the abstract socket namespace, pass true for the boolean flag "abstract", e.g.: qemu -chardev socket,path

[Qemu-devel] [PATCH] Makefile: install the "acpi-dsdt.aml" and "q35-acpi-dsdt.aml" blobs too

2013-01-08 Thread Laszlo Ersek
The WARNING message from commit f7e4dd6c made me notice. Signed-off-by: Laszlo Ersek --- Makefile |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index a7ac04b..f6626b5 100644 --- a/Makefile +++ b/Makefile @@ -280,6 +280,7 @@ bepo ifdef INSTALL_BLOBS

Re: [Qemu-devel] [PATCH 1/1] memory: add name in AddressSpace initialization.

2013-01-08 Thread Alexander Barabash
On 01/08/2013 04:00 PM, Anthony Liguori wrote: Alexander Barabash writes: Pass the AddressSpace's name (to be used for debugging) to address_space_init(). If NULL is passed, the name of root memory region is used instead. @@ -1784,13 +1784,11 @@ static void memory_map_init(void) ... m

Re: [Qemu-devel] [PATCH 00/20 v4] x86 CPU cleanup (wave 2)

2013-01-08 Thread Andreas Färber
Am 28.12.2012 21:01, schrieb Igor Mammedov: > Igor Mammedov (20): > target-i386: filter out unsupported features at realize time > target-i386: sanitize AMD's ext2_features at realize time > target-i386: explicitly set vendor for each built-in cpudef > target-i386: setting default 'vendor'

Re: [Qemu-devel] [PATCH v4 2/2] Add GE IP-Octal 232 IndustryPack emulation

2013-01-08 Thread Andreas Färber
Am 08.01.2013 02:10, schrieb Alberto Garcia: > The GE IP-Octal 232 is an IndustryPack module that implements eight > RS-232 serial ports, each one of which can be redirected to a > character device in the host. > > Signed-off-by: Alberto Garcia > --- > hw/Makefile.objs |2 +- > hw/ipoctal.c

Re: [Qemu-devel] [PATCH 03/61] virtio-pci-bus : introduce virtio-pci-bus.

2013-01-08 Thread Peter Maydell
On 7 January 2013 18:40, wrote: > From: KONRAD Frederic > > Introduce virtio-pci-bus, which extends virtio-bus. It is used with virtio-pci > transport device. > > Signed-off-by: KONRAD Frederic This isn't quite right, I think (somebody correct me if I'm wrong!) The virtio-pci-bus subclass does

Re: [Qemu-devel] [PATCH 04/61] virtio-pci : refactor virtio-pci device.

2013-01-08 Thread Peter Maydell
On 7 January 2013 18:40, wrote: > From: KONRAD Frederic > > Create the virtio-pci device. This transport device will create a > virtio-pci-bus, so one VirtIODevice can be connected. > > Signed-off-by: KONRAD Frederic > --- > hw/virtio-pci.c | 127 >

[Qemu-devel] [Bug 1033727] Re: USB passthrough doesn't work anymore with qemu-kvm 1.1.1

2013-01-08 Thread Serge Hallyn
@Peter Schaefer, (replying to comment #12) could you please follow up on comments #6 and #7? It also would be worthwhile, at this point, checking whether latest upstream (1.3) is still broken. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed

Re: [Qemu-devel] [PATCH 02/61] virtio-bus : introduce virtio-bus

2013-01-08 Thread Peter Maydell
On 7 January 2013 18:40, wrote: > From: KONRAD Frederic > > Introduce virtio-bus. Refactored transport device will create a bus which > extends virtio-bus. > > Signed-off-by: KONRAD Frederic Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] [PATCH 1/2] e1000: no need auto-negotiation if link was down

2013-01-08 Thread Stefan Hajnoczi
On Tue, Jan 08, 2013 at 05:45:30PM +0800, Amos Kong wrote: > On Mon, Jan 07, 2013 at 01:59:54PM +0100, Stefan Hajnoczi wrote: > > On Sun, Jan 06, 2013 at 01:11:49PM +0800, Amos Kong wrote: > > > On Sat, Jan 05, 2013 at 04:45:14PM +0800, Jason Wang wrote: > > > > On 01/03/2013 08:20 PM, Stefan Hajno

Re: [Qemu-devel] [PATCH 01/61] qdev : add a maximum device allowed field for the bus.

2013-01-08 Thread Peter Maydell
On 7 January 2013 18:40, wrote: > From: KONRAD Frederic > > Add a max_dev field to BusClass to specify the maximum amount of devices > allowed > on the bus ( have no effect if max_dev=0 ) "has" (also no spacing needed after '(' or before ')'.) > > Signed-off-by: KONRAD Frederic Reviewed-by:

  1   2   3   >