Re: [Qemu-devel] [PATCH v6 07/47] Move copy out of qemu_peek_buffer

2015-05-20 Thread Amit Shah
On (Tue) 14 Apr 2015 [18:03:33], Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > qemu_peek_buffer currently copies the data it reads into a buffer, > however the next patch wants access to the buffer without the copy, > hence rework to remove the copy to the layer above.

Re: [Qemu-devel] Removing old/unused audio backends

2015-05-20 Thread Gerd Hoffmann
On Do, 2015-05-21 at 00:05 +0200, Kővágó Zoltán wrote: > Here are the drivers that could go in my opinion: > esd: no longer maintained, last release in 2008, replaced by PulseAudio > fmod: not sure about this one, but apparently it's some no longer > developed library that's also proprietary. > s

[Qemu-devel] [PATCH v6 12/13] block: Block "device IO" during bdrv_drain and bdrv_drain_all

2015-05-20 Thread Fam Zheng
We don't want new requests from guest, so block the operation around the nested poll. It also avoids looping forever when iothread is submitting a lot of requests. Signed-off-by: Fam Zheng --- block/io.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a

Re: [Qemu-devel] [RFC PATCH] hw/arm/virt: Added preliminary GICv3 support for kvm mode

2015-05-20 Thread Pavel Fedin
Hello! Sorry, missed this message, catching up... > After a closer look, kvm_arch_irqchip_create is called here with test > mode = true. With that option, at kernel level, we only check the kvm > device registered its ops and do not go further (see > kvm_ioctl_create_device in kvm_main.c): typica

[Qemu-devel] [Bug 1456804] Re: kvm_irqchip_commit_routes: Assertion `ret == 0' failed.

2015-05-20 Thread Jason Wang
Using almost the same XML but still could not reproduce this by myself. What's the version of guest driver inside? I'm using 12/19/2014 62.70.104.9800? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1

[Qemu-devel] [PATCH v6 11/13] blockdev: Block device IO during blockdev-backup transaction

2015-05-20 Thread Fam Zheng
Signed-off-by: Fam Zheng --- blockdev.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/blockdev.c b/blockdev.c index ae52d27..bd28183 100644 --- a/blockdev.c +++ b/blockdev.c @@ -1649,6 +1649,7 @@ typedef struct BlockdevBackupState { BlockDriverState *bs;

[Qemu-devel] [PATCH v6 08/13] blockdev: Block device IO during internal snapshot transaction

2015-05-20 Thread Fam Zheng
Signed-off-by: Fam Zheng --- blockdev.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/blockdev.c b/blockdev.c index 5eaf77e..7f763d9 100644 --- a/blockdev.c +++ b/blockdev.c @@ -1262,6 +1262,7 @@ typedef struct InternalSnapshotState { BlockDriverState *bs;

[Qemu-devel] [PATCH v6 10/13] blockdev: Block device IO during drive-backup transaction

2015-05-20 Thread Fam Zheng
Signed-off-by: Fam Zheng --- blockdev.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/blockdev.c b/blockdev.c index 923fc90..ae52d27 100644 --- a/blockdev.c +++ b/blockdev.c @@ -1575,6 +1575,7 @@ typedef struct DriveBackupState { BlockDriverState *bs; AioCo

[Qemu-devel] [PATCH v6 13/13] block/mirror: Block "device IO" during mirror exit

2015-05-20 Thread Fam Zheng
When mirror should complete, the source and target are in sync. But we call bdrv_swap() only a while later in the main loop bh. If the guest writes something before that, target will not get the new data. Block "device IO" before bdrv_drain and unblock it after bdrw_swap(). Reported-by: Wen Cong

[Qemu-devel] [PATCH v6 03/13] block-backend: Add blk_op_blocker_add_notifier

2015-05-20 Thread Fam Zheng
Forward the call to bdrv_op_blocker_add_notifier. Signed-off-by: Fam Zheng Reviewed-by: Max Reitz --- block/block-backend.c | 6 ++ include/sysemu/block-backend.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/block/block-backend.c b/block/block-backend.c index 93e46f3..16e

[Qemu-devel] [PATCH v6 09/13] blockdev: Block device IO during external snapshot transaction

2015-05-20 Thread Fam Zheng
Signed-off-by: Fam Zheng --- blockdev.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/blockdev.c b/blockdev.c index 7f763d9..923fc90 100644 --- a/blockdev.c +++ b/blockdev.c @@ -1404,6 +1404,7 @@ typedef struct ExternalSnapshotState { BlockDriverStat

[Qemu-devel] [PATCH v6 07/13] nbd-server: Clear "can_read" when "device io" blocker is set

2015-05-20 Thread Fam Zheng
So that NBD export cannot submit IO during bdrv_drain_all(). Signed-off-by: Fam Zheng --- nbd.c | 24 1 file changed, 24 insertions(+) diff --git a/nbd.c b/nbd.c index 06b501b..b5026af 100644 --- a/nbd.c +++ b/nbd.c @@ -160,6 +160,8 @@ struct NBDExport { uint32_t n

[Qemu-devel] [PATCH v6 01/13] block: Add op blocker type "device IO"

2015-05-20 Thread Fam Zheng
It blocks device IO. All bdrv_op_block_all/blk_op_block_all callers are taken care of: - virtio_blk_data_plane_create - virtio_scsi_hotplug Device creation, unblock it. - bdrv_set_backing_hd Backing hd is not used by device, so blocking is OK. - backup_start Blocking target when backup

[Qemu-devel] [PATCH v6 05/13] virtio-blk: Don't handle output when there is "device IO" op blocker

2015-05-20 Thread Fam Zheng
virtio-blk now listens to op blocker change of the associated block backend. Up on setting op blocker on BLOCK_OP_TYPE_DEVICE_IO: non-dataplane: 1) Set VirtIOBlock.paused 2) In virtio_blk_handle_output, do nothing if VirtIOBlock.paused dataplane: 1) Clear the host event notifier

[Qemu-devel] [PATCH v6 06/13] virtio-scsi-dataplane: Add "device IO" op blocker listener

2015-05-20 Thread Fam Zheng
When a disk is attached to scsi-bus, virtio_scsi_hotplug will take care of protecting the block device with op blockers. Currently we haven't enabled block jobs (like what's done in virtio_blk_data_plane_create), but it is necessary to honor "device IO" op blocker first before we do. This is useful

[Qemu-devel] [PATCH v6 02/13] block: Add op blocker notifier list

2015-05-20 Thread Fam Zheng
BDS users can register a notifier and get notified about op blocker changes. Signed-off-by: Fam Zheng Reviewed-by: Max Reitz --- block.c | 35 +++ include/block/block.h | 8 include/block/block_int.h | 3 +++ 3 files changed, 46 i

[Qemu-devel] [PATCH v6 04/13] virtio-blk: Move complete_request to 'ops' structure

2015-05-20 Thread Fam Zheng
Should more ops be added to differentiate code between dataplane and non-dataplane, the new saved_ops approach will be cleaner than messing with N pointers. Signed-off-by: Fam Zheng Reviewed-by: Max Reitz --- hw/block/dataplane/virtio-blk.c | 13 - hw/block/virtio-blk.c |

[Qemu-devel] [PATCH v6 00/13] Fix transactional snapshot with dataplane and NBD export

2015-05-20 Thread Fam Zheng
v6: Patch 13: unset block after bdrv_swap(). Reported by Paolo. Unlike the iohandler in main loop, iothreads currently process the event notifier used by virtio-blk ioeventfd in nested aio_poll. This is dangerous without proper protection, because guest requests could sneak to block layer where t

Re: [Qemu-devel] [PATCH COLO-Block v5 00/15] Block replication for continuous checkpoints

2015-05-20 Thread Wen Congyang
On 05/21/2015 12:52 PM, Wen Congyang wrote: > Block replication is a very important feature which is used for > continuous checkpoints(for example: COLO). > > Usage: > Please refer to docs/block-replication.txt > > You can get the patch here: > https://github.com/wencongyang/qemu-colo/commits/blo

Re: [Qemu-devel] [PATCH 08/14] target-arm: Allow cp access functions to indicate traps to EL2 or EL3

2015-05-20 Thread Edgar E. Iglesias
On Tue, May 19, 2015 at 07:33:28PM +0100, Peter Maydell wrote: > Some coprocessor access functions will need to indicate that the > instruction should trap to EL2 or EL3 rather than the default > target exception level; add corresponding CPAccessResult enum > entries and handling code. > > Signed-

[Qemu-devel] [PATCH 5/6] qga: guest-pipe-open for Windows guest

2015-05-20 Thread Denis V. Lunev
From: Olga Krishtal The patch creates anonymous pipe that can be passed as stdin/stdout/stderr handle to a child process spawned using forthcoming guest-file-exec command. Working with a pipe is done using the existing guest-file-* API. Signed-off-by: Olga Krishtal Signed-off-by: Denis V. Lunev

[Qemu-devel] [PATCH 6/6] qga: guest exec functionality for Windows guests

2015-05-20 Thread Denis V. Lunev
From: Olga Krishtal Child process' stdin/stdout/stderr can be associated with handles for communication via read/write interfaces. The workflow should be something like this: * Open an anonymous pipe through guest-pipe-open * Execute a binary or a script in the guest. Arbitrary arguments and e

[Qemu-devel] [PATCH 4/6] qga: handle possible SIGPIPE in guest-file-write

2015-05-20 Thread Denis V. Lunev
From: Olga Krishtal qemu-ga should not exit on guest-file-write to pipe without read end but proper error code should be returned. The behavior of the spawned process should be default thus SIGPIPE processing should be reset to default after fork() but before exec(). Signed-off-by: Olga Krishtal

[Qemu-devel] [PATCH v3 0/6] qemu: guest agent: implement guest-exec command

2015-05-20 Thread Denis V. Lunev
These patches for guest-agent add the functionality to execute commands on a guest UNIX machine. These patches add the following interfaces: guest-pipe-open guest-exec guest-exec-status With these interfaces it's possible to: * Open an anonymous pipe and work with it as with a file using alread

[Qemu-devel] [PATCH 3/6] qga: guest exec functionality for Unix guests

2015-05-20 Thread Denis V. Lunev
From: Olga Krishtal Child process' stdin/stdout/stderr can be associated with handles for communication via read/write interfaces. The workflow should be something like this: * Open an anonymous pipe through guest-pipe-open * Execute a binary or a script in the guest. Arbitrary arguments and e

[Qemu-devel] [PATCH 2/6] qga: implement guest-pipe-open command

2015-05-20 Thread Denis V. Lunev
From: Olga Krishtal The command creates FIFO pair that can be used with existing file read/write interfaces to communicate with processes spawned via the forthcoming guest-file-exec interface. Signed-off-by: Olga Krishtal Signed-off-by: Denis V. Lunev CC: Roman Kagan CC: Eric Blake CC: Micha

[Qemu-devel] [PATCH 1/6] util, qga: drop guest_file_toggle_flags

2015-05-20 Thread Denis V. Lunev
From: Olga Krishtal guest_file_toggle_flags is a copy from semi-portable qemu_set_nonblock. The latter is not working properly for Windows due to reduced Windows Posix implementation. On Windows OS there is a separate API for changing flags of file, pipes and sockets. Portable way to change file

Re: [Qemu-devel] [PATCH 11/34] block: Allow references for backing files

2015-05-20 Thread Wen Congyang
On 05/09/2015 01:21 AM, Kevin Wolf wrote: > For bs->file, using references to existing BDSes has been possible for a > while already. This patch enables the same for bs->backing_hd. 1. We reference to an existing BDSes, and some disk uses this blk. Do we allow this? 2. bs->backing_hd->blk can be n

Re: [Qemu-devel] [PATCH v3 3/3] ppc: Move cpu_exec_init() call to realize function

2015-05-20 Thread Bharata B Rao
On Thu, May 21, 2015 at 07:28:16AM +0200, Andreas Färber wrote: > Am 21.05.2015 um 07:02 schrieb Bharata B Rao: > > Move cpu_exec_init() call from instance_init to realize. This allows > > any failures from cpu_exec_init() to be handled appropriately. > > Also add corresponding cpu_exec_exit() call

Re: [Qemu-devel] [PATCH v3 3/3] ppc: Move cpu_exec_init() call to realize function

2015-05-20 Thread Andreas Färber
Am 21.05.2015 um 07:02 schrieb Bharata B Rao: > Move cpu_exec_init() call from instance_init to realize. This allows > any failures from cpu_exec_init() to be handled appropriately. > Also add corresponding cpu_exec_exit() call from unrealize. > > Signed-off-by: Bharata B Rao > Reviewed-by: David

[Qemu-devel] [PATCH v3 2/3] cpus: Convert cpu_index into a bitmap

2015-05-20 Thread Bharata B Rao
Currently CPUState.cpu_index is monotonically increasing and a newly created CPU always gets the next higher index. The next available index is calculated by counting the existing number of CPUs. This is fine as long as we only add CPUs, but there are architectures which are starting to support CPU

[Qemu-devel] [PATCH v3 0/3] Bitmap based CPU enumeration

2015-05-20 Thread Bharata B Rao
This patch changes the way cpu_index is handed out to newly created CPUs by tracking the allocted CPUs in a bitmap. More information and the need for this patch is described in patch 2/3 of this series. These generic changes are needed to support CPU hot plug/unplug on PowerPC. Changes in v3 -

[Qemu-devel] [PATCH v3 3/3] ppc: Move cpu_exec_init() call to realize function

2015-05-20 Thread Bharata B Rao
Move cpu_exec_init() call from instance_init to realize. This allows any failures from cpu_exec_init() to be handled appropriately. Also add corresponding cpu_exec_exit() call from unrealize. Signed-off-by: Bharata B Rao Reviewed-by: David Gibson --- target-ppc/translate_init.c | 9 +++-- 1

[Qemu-devel] [PATCH v3 1/3] cpus: Add Error argument to cpu_exec_init()

2015-05-20 Thread Bharata B Rao
Add an Error argument to cpu_exec_init() to let users collect the error. This is in preparation to change the CPU enumeration logic in cpu_exec_init(). With the new enumeration logic, cpu_exec_init() can fail if cpu_index values corresponding to max_cpus have already been handed out. Since all cur

[Qemu-devel] [PATCH COLO-Block v5 15/15] Implement new driver for block replication

2015-05-20 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block/Makefile.objs | 1 + block/replication.c | 441 2 files changed, 442 insertions(+) create mode 100644 block/replication.c diff --git a/block/Makefil

[Qemu-devel] [PATCH COLO-Block v5 05/15] Backup: clear all bitmap when doing block checkpoint

2015-05-20 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei Cc: Jeff Cody --- block/backup.c | 13 + blockjob.c | 10 ++ include/block/blockjob.h | 12 3 files changed, 35 insertions(+) diff --git a/block/backup.c b/

[Qemu-devel] [PATCH COLO-Block v5 13/15] quorum: implement block driver interfaces for block replication

2015-05-20 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block/quorum.c | 78 ++ 1 file changed, 78 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index f91ef75..3eb8fd3 100644 --- a/block/quorum.c +

[Qemu-devel] [PATCH COLO-Block v5 08/15] NBD client: implement block driver interfaces to connect/disconnect NBD server

2015-05-20 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block/nbd.c | 67 - 1 file changed, 49 insertions(+), 18 deletions(-) diff --git a/block/nbd.c b/block/nbd.c index 2176186..bc9477a 100644 --- a/block

[Qemu-devel] [PATCH COLO-Block v5 10/15] NBD client: connect to nbd server later

2015-05-20 Thread Wen Congyang
The secondary qemu starts later than the primary qemu, so we cannot connect to nbd server in bdrv_open(). Introduce a new open flags to control it. Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block/nbd.c | 12 +++- 1 file changed, 7 insertions(+)

[Qemu-devel] [PATCH COLO-Block v5 14/15] quorum: allow ignoring child errors

2015-05-20 Thread Wen Congyang
If the child is not ready, read/write/getlength/flush will return -errno. It is not critical error, and can be ignored: 1. read/write: Just not report the error event. 2. getlength: just ignore it. If all children's getlength return -errno, and be ignored, return -EIO. 3. flush: Just ig

[Qemu-devel] [PATCH COLO-Block v5 06/15] Don't allow a disk use backing reference target

2015-05-20 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block.c | 9 + 1 file changed, 9 insertions(+) diff --git a/block.c b/block.c index 220ba9a..1b362ba 100644 --- a/block.c +++ b/block.c @@ -1206,6 +1206,14 @@ static int bdrv_open_backing_reference_fil

[Qemu-devel] [PATCH COLO-Block v5 09/15] Introduce a new -drive option to control whether to connect to remote target

2015-05-20 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- blockdev.c| 8 include/block/block.h | 1 + qemu-options.hx | 4 3 files changed, 13 insertions(+) diff --git a/blockdev.c b/blockdev.c index 95a0c6a..0c457ee 100644 --- a/blockd

[Qemu-devel] [PATCH COLO-Block v5 11/15] Add new block driver interfaces to control block replication

2015-05-20 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei Cc: Luiz Capitulino Cc: Michael Roth Reviewed-by: Paolo Bonzini --- block.c | 40 include/block/block.h | 5 + include/block/block_int.h | 14 ++

[Qemu-devel] [PATCH COLO-Block v5 04/15] block: Parse "backing_reference" option to reference existing BDS

2015-05-20 Thread Wen Congyang
Usage: -drive file=xxx,id=Y, \ -drive file=,id=X,backing_reference.drive_id=Y,backing_reference.hidden-disk.* It will create such backing chain: {virtio-blk dev 'Y'} {virtio-blk dev 'X'} |

[Qemu-devel] [PATCH COLO-Block v5 03/15] Allow creating backup jobs when opening BDS

2015-05-20 Thread Wen Congyang
When opening BDS, we need to create backup jobs for image-fleecing. Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei Cc: Jeff Cody --- block/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/Makefile.objs b/block/Makefile.ob

[Qemu-devel] [PATCH COLO-Block v5 07/15] Add new block driver interface to connect/disconnect the remote target

2015-05-20 Thread Wen Congyang
In some cases, we want to connect/disconnect the remote target when we need, not in bdrv_open()/bdrv_close(). Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block.c | 24 include/block/block.h | 3 +++ include

[Qemu-devel] [PATCH COLO-Block v5 12/15] skip nbd_target when starting block replication

2015-05-20 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block.c | 12 1 file changed, 12 insertions(+) diff --git a/block.c b/block.c index 74fd3d6..961e395 100644 --- a/block.c +++ b/block.c @@ -4221,6 +4221,10 @@ void bdrv_start_replication(BlockDrive

[Qemu-devel] [PATCH COLO-Block v5 01/15] docs: block replication's description

2015-05-20 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: Yang Hongyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- docs/block-replication.txt | 179 + 1 file changed, 179 insertions(+) create mode 100644 docs/block-replication.txt diff --git a/docs/b

[Qemu-devel] [PATCH COLO-Block v5 00/15] Block replication for continuous checkpoints

2015-05-20 Thread Wen Congyang
Block replication is a very important feature which is used for continuous checkpoints(for example: COLO). Usage: Please refer to docs/block-replication.txt You can get the patch here: https://github.com/wencongyang/qemu-colo/commits/block-replication-v5 The other newest COLO patchse will be sen

[Qemu-devel] [PATCH COLO-Block v5 02/15] allow writing to the backing file

2015-05-20 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block.c | 33 - 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index 49d472f..adffa0e 100644 --- a/block.c +++ b/block.c @@ -1051,6 +1051,20 @@ ou

[Qemu-devel] [Bug 1457275] [NEW] qemu-user hangs in m{, un}map loop

2015-05-20 Thread L29Ah
Public bug reported: Gentoo amd64 there, tried both 2.3.0 and eba05e922e8e7f307bc5d4104a78797e55124e97 versions of qemu. Reproduces with qemu-x86_64 as well. ∞ strace qemu-arm bin/true 2>&1| head -n 100 execve("/usr/bin/qemu-arm", ["qemu-arm", "bin/true"], [/* 49 vars */]) = 0 uname({sysname="Lin

Re: [Qemu-devel] [PATCH] qemu-error: make the timestamp more obvious and clear

2015-05-20 Thread Gonglei
On 2015/5/21 11:07, Eric Blake wrote: > On 05/20/2015 08:54 PM, arei.gong...@huawei.com wrote: >> From: Gonglei >> >> before: >>(qemu) 2015-05-21T02:07:43.695065Z qemu-system-x86_64: test > > Ah, but the trailing Z is UTC, > >> after applying this patch: >>(qemu) [2015-05-21T02:21:46

Re: [Qemu-devel] [PATCH] qemu-error: make the timestamp more obvious and clear

2015-05-20 Thread Eric Blake
On 05/20/2015 08:54 PM, arei.gong...@huawei.com wrote: > From: Gonglei > > before: >(qemu) 2015-05-21T02:07:43.695065Z qemu-system-x86_64: test Ah, but the trailing Z is UTC, > after applying this patch: >(qemu) [2015-05-21T02:21:46.023619Z UTC] qemu-system-x86_64: test so this

Re: [Qemu-devel] [RFC] Can we convert UTC time to local time in Qemu

2015-05-20 Thread Eric Blake
On 05/20/2015 08:43 AM, Eric Blake wrote: > > I'd rather stick with UTC in logs (but perhaps make it more obvious that > the timestamp is UTC by actually sticking that string as part of the > timestamp - libvirt is not currently doing that). Actually, here's a libvirt log timestamp: 2015-05-17 0

[Qemu-devel] [PATCH] qemu-error: make the timestamp more obvious and clear

2015-05-20 Thread arei.gonglei
From: Gonglei before: (qemu) 2015-05-21T02:07:43.695065Z qemu-system-x86_64: test after applying this patch: (qemu) [2015-05-21T02:21:46.023619Z UTC] qemu-system-x86_64: test Cc: Eric Blake Signed-off-by: Gonglei --- util/qemu-error.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[Qemu-devel] [PATCH v8 24/24] hw/arm/virt: Enable dynamic generation of ACPI v5.1 tables

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao Initialize VirtGuestInfoState and register a machine_init_done notify to call virt_acpi_build(). Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/arm/virt.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c

[Qemu-devel] [PATCH v8 06/24] hw/acpi/aml-build: Add aml_interrupt() term

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao Add aml_interrupt() for describing device interrupt in resource template. These can be used to generating DSDT table for ACPI on ARM. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 27 +++ include/hw/acpi/am

[Qemu-devel] [PATCH v8 19/24] hw/acpi/aml-build: Add aml_create_dword_field() term

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Alex Bennée Reviewed-by: Igor Mammedov --- hw/acpi/aml-build.c | 11 +++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 12 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/a

[Qemu-devel] [PATCH v8 10/24] hw/arm/virt-acpi-build: Generate GTDT table

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao ACPI v5.1 defines GTDT for ARM devices as a place to describe timer related information in the system. The Arch Timer interrupts must be provided for GTDT. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/arm/virt-acpi-build.c| 29 +

[Qemu-devel] [PATCH v8 22/24] hw/arm/virt-acpi-build: Add PCIe controller in ACPI DSDT table

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao Add PCIe controller in ACPI DSDT table, so the guest can detect the PCIe. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/arm/virt-acpi-build.c | 155 +++ 1 file changed, 155 insertions(+) diff --git a/hw/arm/virt-

[Qemu-devel] [PATCH v8 18/24] hw/acpi/aml-build: Add aml_else() term

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Alex Bennée Reviewed-by: Igor Mammedov --- hw/acpi/aml-build.c | 7 +++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 8 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-buil

[Qemu-devel] [PATCH v8 21/24] hw/acpi/aml-build: Add Unicode macro

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Igor Mammedov --- hw/acpi/aml-build.c | 17 + include/hw/acpi/aml-build.h | 1 + 2 files changed, 18 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index bd9

[Qemu-devel] [PATCH v8 13/24] hw/arm/virt-acpi-build: Generate MCFG table

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao Generate MCFG table for PCIe controller. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/arm/virt-acpi-build.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c index 9c836ef..38e9

[Qemu-devel] [PATCH v8 23/24] ACPI: split CONFIG_ACPI into 4 pieces

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao As core.c, piix4.c, ich9.c and pcihp.c are for x86, add CONFIG_ACPI_X86 to make it only for x86. ARM doesn't support cpu and memory hotplug, add CONFIG_ACPI_CPU_HOTPLUG and CONFIG_ACPI_MEMORY_HOTPLUG to exclude them for target-arm. Signed-off-by: Shannon Zhao Signed-off-by: S

[Qemu-devel] [PATCH v8 12/24] hw/arm/virt-acpi-build: Generate RSDP table

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao RSDP points to RSDT which in turn points to other tables. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Alex Bennée --- hw/arm/virt-acpi-build.c | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/h

[Qemu-devel] [PATCH v8 11/24] hw/arm/virt-acpi-build: Generate RSDT table

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao RSDT points to other tables FADT, MADT, GTDT. This code is shared with x86. Here we still use RSDT as UEFI puts ACPI tables below 4G address space, and UEFI ignore the RSDT or XSDT. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 2

[Qemu-devel] [PATCH v8 17/24] hw/acpi/aml-build: Add aml_lnot() term

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Alex Bennée Reviewed-by: Igor Mammedov --- hw/acpi/aml-build.c | 8 include/hw/acpi/aml-build.h | 1 + 2 files changed, 9 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-bui

[Qemu-devel] [PATCH v8 20/24] hw/acpi/aml-build: Add aml_dword_io() term

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Alex Bennée Reviewed-by: Igor Mammedov --- hw/acpi/aml-build.c | 18 ++ include/hw/acpi/aml-build.h | 5 + 2 files changed, 23 insertions(+) diff --git a/hw/acpi/aml-build.c

[Qemu-devel] [PATCH v8 05/24] hw/acpi/aml-build: Add aml_memory32_fixed() term

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao Add aml_memory32_fixed() for describing device mmio region in resource template. These can be used to generating DSDT table for ACPI on ARM. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Alex Bennée Reviewed-by: Igor Mammedov Reviewed-by: Michael S.

[Qemu-devel] [PATCH v8 08/24] hw/arm/virt-acpi-build: Generate FADT table and update ACPI headers

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao In the case of mach virt, it is used to set the Hardware Reduced bit and enable PSCI SMP booting through HVC. So ignore FACS and FADT points to DSDT. Update the header definitions for FADT taking into account the new additions of ACPI v5.1 in `include/hw/acpi/acpi-defs.h` Sig

[Qemu-devel] [PATCH v8 07/24] hw/arm/virt-acpi-build: Generation of DSDT table for virt devices

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao DSDT consists of the usual common table header plus a definition block in AML encoding which describes all devices in the platform. After initializing DSDT with header information the namespace is created which is followed by the device encodings. The devices are described usi

[Qemu-devel] [PATCH v8 09/24] hw/arm/virt-acpi-build: Generate MADT table

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao MADT describes GIC enabled ARM platforms. The GICC and GICD subtables are used to define the GIC regions. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Alex Bennée --- hw/arm/virt-acpi-build.c | 57 in

[Qemu-devel] [PATCH v8 15/24] hw/acpi/aml-build: Add ToUUID macro

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao Add ToUUID macro, this is useful for generating PCIe ACPI table. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Igor Mammedov --- hw/acpi/aml-build.c | 53 + include/hw/acpi/aml-build.h | 1 + 2 fil

[Qemu-devel] [PATCH v8 16/24] hw/acpi/aml-build: Add aml_or() term

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Igor Mammedov --- hw/acpi/aml-build.c | 10 ++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 11 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index ebce504..5

[Qemu-devel] [PATCH v8 03/24] hw/arm/virt: Record PCIe ranges in MemMapEntry array

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao To generate ACPI table for PCIe controller, we need the base and size of the PCIe ranges. Record these ranges in MemMapEntry array, then we could share and use them for generating ACPI table. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/arm/virt.c

[Qemu-devel] [PATCH v8 01/24] hw/acpi/aml-build: Make enum values to be upper case to match coding style

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 12 hw/i386/acpi-build.c| 58 +++--- include/hw/acpi/aml-build.h | 68 ++--- 3 files changed, 69

[Qemu-devel] [PATCH v8 04/24] hw/arm/virt-acpi-build: Basic framework for building ACPI tables on ARM

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao Introduce a preliminary framework in virt-acpi-build.c with the main ACPI build functions. It exposes the generated ACPI contents to guest over fw_cfg. The required ACPI v5.1 tables for ARM are: - RSDP: Initial table that points to XSDT - RSDT: Points to FADT GTDT MADT tables

[Qemu-devel] [PATCH v8 02/24] hw/arm/virt: Move common definitions to virt.h

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao Move some common definitions to virt.h. These will be used by generating ACPI tables. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/arm/virt.c | 21 +-- include/hw/arm/virt.h | 56 +++

[Qemu-devel] [PATCH v8 00/24] Generate ACPI v5.1 tables and expose them to guest over fw_cfg on ARM

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao This patch series generate seven ACPI tables for machine virt on ARM. The set of generated tables are: - RSDP - RSDT - MADT - GTDT - FADT - DSDT - MCFG (For PCIe host bridge) These tables are created dynamically using the function of aml-build.c, taking into account the needed

[Qemu-devel] [PATCH v8 14/24] hw/acpi/aml-build: Make aml_buffer() definition consistent with the spec

2015-05-20 Thread Shannon Zhao
From: Shannon Zhao According to ACPI spec, DefBuffer can take two parameters: BufferSize and ByteList. Make it consistent with the spec. Uninitialized buffer could be requested by passing ByteList as NULL to reserve space. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/acpi/am

Re: [Qemu-devel] [RFC/RFT PATCH v2 3/3] arm/arm64: KVM: implement 'uncached' mem coherency

2015-05-20 Thread Mario Smarduch
On 05/15/2015 10:04 AM, Andrew Jones wrote: > On Fri, May 15, 2015 at 08:02:59AM -0700, Christoffer Dall wrote: >> On Thu, May 14, 2015 at 03:32:13PM +0200, Andrew Jones wrote: >>> On Thu, May 14, 2015 at 12:55:49PM +0200, Christoffer Dall wrote: On Wed, May 13, 2015 at 01:31:54PM +0200, Andre

Re: [Qemu-devel] [RFC] Can we convert UTC time to local time in Qemu

2015-05-20 Thread Gonglei
On 2015/5/20 22:43, Eric Blake wrote: > On 05/20/2015 12:29 AM, Gonglei (Arei) wrote: >> Hi, >> >> At present, Qemu use g_time_val_to_iso8601() to get the UTC added to >> error_report() >> (commit 5e2ac5191), TBH this way is very simply, we just need invoke >> standard glib functions to >> comple

Re: [Qemu-devel] [RFC v7 11/11] vfio: add 'aer' property to expose aercap

2015-05-20 Thread Chen Fan
On 05/21/2015 02:47 AM, Alex Williamson wrote: On Wed, 2015-05-20 at 11:43 +0800, Chen Fan wrote: On 05/20/2015 03:34 AM, Alex Williamson wrote: On Tue, 2015-05-19 at 12:42 +0800, Chen Fan wrote: add 'aer' property to let user able to decide whether expose the aer capability. by default we sh

[Qemu-devel] [PATCH] iov: don't touch iov in iov_send_recv()

2015-05-20 Thread Wen Congyang
Signed-off-by: Wen Congyang --- include/qemu/iov.h | 2 +- util/iov.c | 14 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/include/qemu/iov.h b/include/qemu/iov.h index 68d25f2..569b2c2 100644 --- a/include/qemu/iov.h +++ b/include/qemu/iov.h @@ -75,7 +75,

Re: [Qemu-devel] [PATCH COLO v4 00/15] Block replication for continuous checkpoints

2015-05-20 Thread Wen Congyang
On 05/21/2015 03:18 AM, Dr. David Alan Gilbert wrote: > * Wen Congyang (we...@cn.fujitsu.com) wrote: >> Block replication is a very important feature which is used for >> continuous checkpoints(for example: COLO). >> >> Usage: >> Please refer to docs/block-replication.txt >> >> You can get the patc

[Qemu-devel] Removing old/unused audio backends

2015-05-20 Thread Kővágó Zoltán
Hi, I'll be doing doing gsoc this year, where I'll rework the audio backend of qemu to allow multiple backend instances and multichannel audio. This will of course require modifications of the existing audio drivers in qemu, so it's probably a good idea to remove drivers that nobody use anymo

Re: [Qemu-devel] [PATCH] tci: do not use CPUArchState in tcg-target.h

2015-05-20 Thread Richard Henderson
On 05/19/2015 12:59 AM, Paolo Bonzini wrote: > tcg-target.h does not use any QEMU-specific symbols, save for tci's usage > of CPUArchState. Pull that up to tcg/tcg.h. Reviewed-by: Richard Henderson > This will make it possible to include tcg-target.h in cpu-defs.h. Why? r~

Re: [Qemu-devel] [PATCH COLO v4 00/15] Block replication for continuous checkpoints

2015-05-20 Thread Dr. David Alan Gilbert
* Wen Congyang (we...@cn.fujitsu.com) wrote: > Block replication is a very important feature which is used for > continuous checkpoints(for example: COLO). > > Usage: > Please refer to docs/block-replication.txt > > You can get the patch here: > https://github.com/wencongyang/qemu-colo/commits/bl

Re: [Qemu-devel] Broken SuperH atomics in qemu app-level emulation

2015-05-20 Thread Richard Henderson
On 05/17/2015 08:05 PM, Rich Felker wrote: > At the very least qemu-sh4 should provide a correct value of AT_HWCAP > so we get working atomics with -cpu SH7785. And since the GUSA atomic > model can't work with app-level emulation, I really think qemu-sh4 > should either default to -cpu SH7785 or a

Re: [Qemu-devel] [PATCH v2 2/2] qga: win32 implementation of qmp_guest_network_get_interfaces

2015-05-20 Thread Olga Krishtal
On 01/04/15 18:39, Kirk Allan wrote: By default, IP addresses and prefixes will be derived from information obtained by various calls and structures. IPv4 prefixes can be found by matching the address to those returned by GetApaptersInfo. IPv6 prefixes can not be matched this way due to the unp

[Qemu-devel] [PULL 00/18] target-alpha fpu improvments

2015-05-20 Thread Richard Henderson
at: git://github.com/rth7680/qemu.git tags/pull-axp-20150520 for you to fetch changes up to 7e66205cd6ae0fc015960af8d907fdf2147cadb8: target-alpha: Add vector implementation for CMPBGE (2015-05-18 13:03:47 -0700) Rewrite fp

Re: [Qemu-devel] [RFC v7 04/11] vfio: add check host bus reset is support or not

2015-05-20 Thread Alex Williamson
On Wed, 2015-05-20 at 15:24 +0800, Chen Fan wrote: > On 05/20/2015 03:34 AM, Alex Williamson wrote: > > On Tue, 2015-05-19 at 12:42 +0800, Chen Fan wrote: > >> when machine is done, we should check the all vfio devices > >> whether support host bus reset, then when need virtual secondary > >> bus r

Re: [Qemu-devel] [RFC v7 05/11] vfio: do hot bus reset when do virtual secondary bus reset

2015-05-20 Thread Alex Williamson
On Wed, 2015-05-20 at 17:59 +0800, Chen Fan wrote: > On 05/20/2015 03:34 AM, Alex Williamson wrote: > > On Tue, 2015-05-19 at 12:42 +0800, Chen Fan wrote: > >> when do virtual secondary bus reset, the vfio device under > >> this bus need to do host bus reset to reset the device. > >> so add this ca

Re: [Qemu-devel] [RFC v7 11/11] vfio: add 'aer' property to expose aercap

2015-05-20 Thread Alex Williamson
On Wed, 2015-05-20 at 11:43 +0800, Chen Fan wrote: > On 05/20/2015 03:34 AM, Alex Williamson wrote: > > On Tue, 2015-05-19 at 12:42 +0800, Chen Fan wrote: > >> add 'aer' property to let user able to decide whether expose > >> the aer capability. by default we should disable aer feature, > >> becaus

[Qemu-devel] [Bug 1377095] Re: KVM guest VM does not reattach a throughpassed USB printer from Host after switching printer off and on

2015-05-20 Thread 123p
This is a very annoying bug, and it is still not solved after six months, last versions tested with the bug: KVM host qemu version 2.2.1 KVM host Linux version 3.14.37 Please fix this. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU

Re: [Qemu-devel] [PATCH v4 3/3] target-mips: Misaligned memory accesses for MSA

2015-05-20 Thread Richard Henderson
On 05/20/2015 08:12 AM, Yongbok Kim wrote: > +#define MSA_LD_DF(DF, TYPE, LD_INSN, ...) \ > +void helper_msa_ld_ ## TYPE(CPUMIPSState *env, uint32_t wd, uint32_t rs,\ > + int32_t s10) \ > +{

Re: [Qemu-devel] [PATCH v4 2/3] softmmu: Add probe_write()

2015-05-20 Thread Richard Henderson
On 05/20/2015 08:12 AM, Yongbok Kim wrote: > +} > +return; > +} Drop the useless return. r~

Re: [Qemu-devel] [PATCH v4 1/3] target-mips: Misaligned memory accesses for R6

2015-05-20 Thread Richard Henderson
On 05/20/2015 08:12 AM, Yongbok Kim wrote: > diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c > index 73a8e45..58f02cf 100644 > --- a/target-mips/op_helper.c > +++ b/target-mips/op_helper.c > @@ -2215,6 +2215,13 @@ void mips_cpu_do_unaligned_access(CPUState *cs, vaddr > addr, >

Re: [Qemu-devel] [PATCH 2/4] Disable section footers on older machine types

2015-05-20 Thread Dr. David Alan Gilbert
* Juan Quintela (quint...@redhat.com) wrote: > "Dr. David Alan Gilbert (git)" wrote: > > From: "Dr. David Alan Gilbert" > > > > The next patch adds section footers; but we don't want to > > break migration compatibility so disable them on older > > machine types > > > > Signed-off-by: Dr. David A

[Qemu-devel] [Bug 1456804] Re: kvm_irqchip_commit_routes: Assertion `ret == 0' failed.

2015-05-20 Thread Alex Williamson
Correction, I was using the stock distro qemu-kvm. Yes, the problem occurs on a stock seabios win8.1 VM without vfio: win8.1 896cb319-c196-4b92-a7e2-2306b0eac769 4194304 4194304 2 hvm SandyBridge

  1   2   3   >