Re: [Qemu-devel] [PATCH v4 4/4] spapr_pci: populate ibm,loc-code

2015-05-18 Thread Nikunj A Dadhania
Alexey Kardashevskiy writes: > On 05/19/2015 02:51 PM, Nikunj A Dadhania wrote: >> Alexey Kardashevskiy writes: >> >>> On 05/07/2015 05:21 PM, Nikunj A Dadhania wrote: Each hardware instance has a platform unique location code. The OF device tree that describes a part of a hardware en

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

2015-05-18 Thread Bharata B Rao
On Mon, May 18, 2015 at 03:36:54PM -0300, Eduardo Habkost wrote: > On Tue, May 12, 2015 at 11:06:25AM +0530, Bharata B Rao wrote: > > 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

Re: [Qemu-devel] [PATCH v3 02/13] qemu-nbd: Switch to qemu_set_fd_handler

2015-05-18 Thread Amit Shah
On (Tue) 19 May 2015 [11:32:56], Amit Shah wrote: > On (Tue) 19 May 2015 [10:50:59], Fam Zheng wrote: > > Achieved by: > > > > - Remembering the server fd with a global variable, in order to access > > it from nbd_client_closed. > > > > - Checking nbd_can_accept() and updating server_fd handler

Re: [Qemu-devel] [RFC PATCH v4 23/28] COLO: Improve checkpoint efficiency by do additional periodic checkpoint

2015-05-18 Thread zhanghailiang
On 2015/5/19 0:48, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: Besides normal checkpoint which according to the result of net packets comparing, We do additional checkpoint periodically, it will reduce the number of dirty pages when do one checkpoint, if

Re: [Qemu-devel] [PATCH v3 02/13] qemu-nbd: Switch to qemu_set_fd_handler

2015-05-18 Thread Amit Shah
On (Tue) 19 May 2015 [10:50:59], Fam Zheng wrote: > Achieved by: > > - Remembering the server fd with a global variable, in order to access > it from nbd_client_closed. > > - Checking nbd_can_accept() and updating server_fd handler whenever > client connects or disconnects. > > Signed-off-by

Re: [Qemu-devel] [PATCH v2 0/3] Bitmap based CPU enumeration

2015-05-18 Thread Bharata B Rao
On Mon, May 18, 2015 at 04:09:49PM -0300, Eduardo Habkost wrote: > On Tue, May 12, 2015 at 11:06:23AM +0530, Bharata B Rao wrote: > > 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 pa

Re: [Qemu-devel] [PATCH v4 4/4] spapr_pci: populate ibm,loc-code

2015-05-18 Thread Nikunj A Dadhania
Alexey Kardashevskiy writes: > On 05/19/2015 02:51 PM, Nikunj A Dadhania wrote: >> Alexey Kardashevskiy writes: >> >>> On 05/07/2015 05:21 PM, Nikunj A Dadhania wrote: Each hardware instance has a platform unique location code. The OF device tree that describes a part of a hardware en

Re: [Qemu-devel] [PATCH v4 4/4] spapr_pci: populate ibm,loc-code

2015-05-18 Thread Alexey Kardashevskiy
On 05/19/2015 02:51 PM, Nikunj A Dadhania wrote: Alexey Kardashevskiy writes: On 05/07/2015 05:21 PM, Nikunj A Dadhania wrote: Each hardware instance has a platform unique location code. The OF device tree that describes a part of a hardware entity must include the “ibm,loc-code” property wi

Re: [Qemu-devel] [PATCH v4 4/4] spapr_pci: populate ibm,loc-code

2015-05-18 Thread Nikunj A Dadhania
Alexey Kardashevskiy writes: > On 05/07/2015 05:21 PM, Nikunj A Dadhania wrote: >> Each hardware instance has a platform unique location code. The OF >> device tree that describes a part of a hardware entity must include >> the “ibm,loc-code” property with a value that represents the location >>

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

2015-05-18 Thread Chen Fan
add 'aer' property to let user able to decide whether expose the aer capability. by default we should disable aer feature, because it needs configuration restrictions. Signed-off-by: Chen Fan --- hw/i386/pc_q35.c| 4 +++ hw/vfio/pci.c | 84 +

[Qemu-devel] [RFC v7 10/11] vfio-pci: pass the aer error to guest

2015-05-18 Thread Chen Fan
when the vfio device encounters an uncorrectable error in host, the vfio_pci driver will signal the eventfd registered by this vfio device, the results in the qemu eventfd handler getting invoked. this patch is to pass the error to guest and have the guest driver recover from the error. Signed-of

[Qemu-devel] [RFC v7 06/11] vfio: add pcie extanded capability support

2015-05-18 Thread Chen Fan
For vfio pcie device, we could expose the extended capability on PCIE bus. in order to avoid config space broken, we introduce a copy config for parsing extended caps. and rebuild the pcie extended config space. Signed-off-by: Chen Fan --- hw/vfio/pci.c | 73 +

[Qemu-devel] [RFC v7 07/11] aer: impove pcie_aer_init to support vfio device

2015-05-18 Thread Chen Fan
pcie_aer_init was used to emulate an aer capability for pcie device, but for vfio device, the aer config space size is mutable and is not always equal to PCI_ERR_SIZEOF(0x48). it depends on where the TLP Prefix register required, so here we add a size argument. Signed-off-by: Chen Fan --- hw/pci

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

2015-05-18 Thread Chen Fan
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 case. Signed-off-by: Chen Fan --- hw/vfio/pci.c | 12 +++- include/hw/vfio/vfio-common.h | 1 - 2 files changed, 11 insertions(+), 2 deletions(-

[Qemu-devel] [RFC v7 00/11] vfio-pci: pass the aer error to guest

2015-05-18 Thread Chen Fan
For now, for vfio pci passthough devices when qemu receives an error from host aer report, there just terminate the guest, but usually user want to know what error occurred but stop the guest, so this patches add aer capability support for vfio device, and pass the error to guest, and have guest dr

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

2015-05-18 Thread Chen Fan
when machine is done, we should check the all vfio devices whether support host bus reset, then when need virtual secondary bus reset, we should reset host bus. Signed-off-by: Chen Fan --- hw/vfio/pci.c | 83 +++ 1 file changed, 83 insertio

[Qemu-devel] [RFC v7 08/11] vfio: add aer support for vfio device

2015-05-18 Thread Chen Fan
Calling pcie_aer_init to initilize aer related registers for vfio device, then reload physical related registers to expose device capability. Signed-off-by: Chen Fan --- hw/vfio/pci.c | 49 - 1 file changed, 48 insertions(+), 1 deletion(-) diff --

[Qemu-devel] [RFC v7 09/11] pcie_aer: expose pcie_aer_msg() interface

2015-05-18 Thread Chen Fan
For vfio device, we need to propagate the aer error to Guest OS. we use the pcie_aer_msg() to send aer error to guest. Signed-off-by: Chen Fan --- hw/pci/pcie_aer.c | 2 +- include/hw/pci/pcie_aer.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/pci/pcie_aer.c b/

[Qemu-devel] [RFC v7 03/11] qdev: add bus reset_notifiers callbacks for host bus reset

2015-05-18 Thread Chen Fan
Particularly, For vfio device, Once need to recovery devices by bus reset such as AER, we always need to reset the host bus to recovery the devices under the bus, so we need to add pci bus callbacks to specify to do host bus reset. Signed-off-by: Chen Fan --- hw/pci/pci.c | 6 +

[Qemu-devel] [RFC v7 01/11] vfio: extract vfio_get_hot_reset_info as a single function

2015-05-18 Thread Chen Fan
the function is used to get affected devices by bus reset. so here extract it, and can used for aer soon. Signed-off-by: Chen Fan --- hw/vfio/pci.c | 63 +++ 1 file changed, 46 insertions(+), 17 deletions(-) diff --git a/hw/vfio/pci.c b/hw

[Qemu-devel] [RFC v7 02/11] vfio: squeeze out vfio_pci_do_hot_reset for support bus reset

2015-05-18 Thread Chen Fan
squeeze out vfio_pci_do_hot_reset to do host bus reset when AER recovery. Signed-off-by: Chen Fan --- hw/vfio/pci.c | 75 +++ 1 file changed, 44 insertions(+), 31 deletions(-) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index fe4963f..037a2

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

2015-05-18 Thread Fam Zheng
When block job mirror is finished, the source and target is synced. But we call bdrv_swap() later in main loop bh. If the guest write before that, target will not get the new data. Reported-by: Wen Congyang Signed-off-by: Fam Zheng --- block/mirror.c | 8 +++- 1 file changed, 7 insertions(+

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

2015-05-18 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

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

2015-05-18 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 v4 09/13] blockdev: Block device IO during external snapshot transaction

2015-05-18 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 v4 11/13] blockdev: Block device IO during blockdev-backup transaction

2015-05-18 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 v4 07/13] nbd-server: Clear "can_read" when "device io" blocker is set

2015-05-18 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 v4 06/13] virtio-scsi-dataplane: Add "device IO" op blocker listener

2015-05-18 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 v4 08/13] blockdev: Block device IO during internal snapshot transaction

2015-05-18 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 v4 01/13] block: Add op blocker type "device IO"

2015-05-18 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 v4 03/13] block-backend: Add blk_op_blocker_add_notifier

2015-05-18 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 v4 02/13] block: Add op blocker notifier list

2015-05-18 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 v4 05/13] virtio-blk: Don't handle output when there is "device IO" op blocker

2015-05-18 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 v4 04/13] virtio-blk: Move complete_request to 'ops' structure

2015-05-18 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 v4 00/13] Fix transactional snapshot with dataplane and NBD export

2015-05-18 Thread Fam Zheng
v4: virtio-scsi-dataplane: Use assert in ctrl/event queue handler. [Paolo] Protect mirror complete in new patch 13. [Wen] Add Max's rev-by in 02, 03, 04. Fix 05, 06 per Max's comments. Reported by Paolo. Unlike the iohandler in main loop, iothreads currently process the event notifier

Re: [Qemu-devel] [PATCHv2 1/3] Add specific config options for PCI-E bridges

2015-05-18 Thread Shannon Zhao
Hi, On 2015/5/19 10:40, Shannon Zhao wrote: > Hi, > > I'm testing PCIe root port (ioh3420) on ARM64. Firstly I use following > simple command line to check whether it works. > > qemu-system-aarch64 -M virt -device ioh3420 > > But it fails with below log: > > qemu-system-aarch64: -device ioh342

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

2015-05-18 Thread Fam Zheng
On Mon, 05/18 20:19, Max Reitz wrote: > On 15.05.2015 08:04, Fam Zheng wrote: > > Indentation is off if you intended to indent based on the opening > parenthesis. Will fix. > > Different question: Since event->type == BLOCK_OP_TYPE_DEVICE_IO, when will > event->blocking ever be not equal to blk

[Qemu-devel] [PATCH v3 11/13] xen_backend: Remove unused error handling of qemu_set_fd_handler

2015-05-18 Thread Fam Zheng
The function cannot fail, so the check is superfluous. Signed-off-by: Fam Zheng --- hw/xen/xen_backend.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/xen/xen_backend.c b/hw/xen/xen_backend.c index b2cb22b..2510e2e 100644 --- a/hw/xen/xen_backend.c +++ b/hw/xen/xen_ba

[Qemu-devel] [PATCH v3 10/13] oss: Remove unused error handling of qemu_set_fd_handler

2015-05-18 Thread Fam Zheng
The function cannot fail, so the check is superfluous. Signed-off-by: Fam Zheng --- audio/ossaudio.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/audio/ossaudio.c b/audio/ossaudio.c index 4db2ca6..b9c6b30 100644 --- a/audio/ossaudio.c +++ b/audio/ossaudio.c

[Qemu-devel] [PATCH v3 08/13] main-loop: Drop qemu_set_fd_handler2

2015-05-18 Thread Fam Zheng
All users are converted to qemu_set_fd_handler now, drop qemu_set_fd_handler2 and IOHandlerRecord.fd_read_poll. Signed-off-by: Fam Zheng --- include/block/aio.h | 2 +- include/qemu/main-loop.h | 49 +--- iohandler.c | 26 +--

[Qemu-devel] [PATCH v3 09/13] alsaaudio: Remove unused error handling of qemu_set_fd_handler

2015-05-18 Thread Fam Zheng
The function cannot fail, so the check is superfluous. Signed-off-by: Fam Zheng --- audio/alsaaudio.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c index 74ead97..ed7655d 100644 --- a/audio/alsaaudio.c +++ b/audio/alsa

[Qemu-devel] [PATCH v3 01/13] stubs: Add qemu_set_fd_handler

2015-05-18 Thread Fam Zheng
Some qemu_set_fd_handler2 stub callers will be converted to call qemu_set_fd_handler, add this stub for them before making the change. Signed-off-by: Fam Zheng --- stubs/set-fd-handler.c | 8 1 file changed, 8 insertions(+) diff --git a/stubs/set-fd-handler.c b/stubs/set-fd-handler.c i

[Qemu-devel] [PATCH v3 07/13] Change qemu_set_fd_handler2(..., NULL, ...) to qemu_set_fd_handler

2015-05-18 Thread Fam Zheng
Done with following Coccinelle semantic patch, plus manual cosmetic changes in net/*.c. @@ expression E1, E2, E3, E4; @@ - qemu_set_fd_handler2(E1, NULL, E2, E3, E4); + qemu_set_fd_handler(E1, E2, E3, E4); Signed-off-by: Fam Zheng --- blockdev-nbd.c | 4 ++-- ma

[Qemu-devel] [PATCH v3 13/13] iohandler: Change return type of qemu_set_fd_handler to "void"

2015-05-18 Thread Fam Zheng
Signed-off-by: Fam Zheng --- include/qemu/main-loop.h | 8 iohandler.c | 9 - stubs/set-fd-handler.c | 8 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/include/qemu/main-loop.h b/include/qemu/main-loop.h index 7da1d63..0f4a0fd 100644 ---

[Qemu-devel] [PATCH v3 05/13] net/socket: Drop net_socket_can_send

2015-05-18 Thread Fam Zheng
This callback is called by main loop before polling s->fd, if it returns false, the fd will not be polled in this iteration. This is redundant with checks inside read callback. After this patch, the data will be sent to peer when it arrives. If the device can't receive, it will be queued to incomi

[Qemu-devel] [PATCH v3 06/13] tap: Drop tap_can_send

2015-05-18 Thread Fam Zheng
This callback is called by main loop before polling s->fd, if it returns false, the fd will not be polled in this iteration. This is redundant with checks inside read callback. After this patch, the data will be sent to peer when it arrives. If the device can't receive, it will be queued to incomi

[Qemu-devel] [PATCH v3 03/13] l2tpv3: Drop l2tpv3_can_send

2015-05-18 Thread Fam Zheng
This callback is called by main loop before polling s->fd, if it returns false, the fd will not be polled in this iteration. This is redundant with checks inside read callback. After this patch, the data will be copied from s->fd to s->msgvec when it arrives. If the device can't receive, it will b

[Qemu-devel] [PATCH v3 12/13] event-notifier: Always return 0 for posix implementation

2015-05-18 Thread Fam Zheng
qemu_set_fd_handler cannot fail, let's always return 0. Signed-off-by: Fam Zheng --- util/event_notifier-posix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/event_notifier-posix.c b/util/event_notifier-posix.c index 8442c6e..ed4ca2b 100644 --- a/util/event_notifier

[Qemu-devel] [PATCH v3 04/13] netmap: Drop netmap_can_send

2015-05-18 Thread Fam Zheng
This callback is called by main loop before polling s->fd, if it returns false, the fd will not be polled in this iteration. This is redundant with checks inside read callback. After this patch, the data will be copied from s->fd to s->iov when it arrives. If the device can't receive, it will be q

[Qemu-devel] [PATCH v3 00/13] main-loop: Get rid of fd_read_poll and qemu_set_fd_handler2

2015-05-18 Thread Fam Zheng
v3: Replace previous 13 with a simple return type conversion patch. Drop RFC. This carries out the mandate in the comment of qemu_set_fd_handler2 and removes fd_read_poll from the code base, because it will make the work easier to convert ppoll to epoll in main loop. Also, the aio interface d

[Qemu-devel] [PATCH v3 02/13] qemu-nbd: Switch to qemu_set_fd_handler

2015-05-18 Thread Fam Zheng
Achieved by: - Remembering the server fd with a global variable, in order to access it from nbd_client_closed. - Checking nbd_can_accept() and updating server_fd handler whenever client connects or disconnects. Signed-off-by: Fam Zheng Reviewed-by: Paolo Bonzini --- qemu-nbd.c | 21 ++

Re: [Qemu-devel] [PATCH 05/10 v10] target-tilegx/opcode_tilegx.h: Modify it to fit qemu using

2015-05-18 Thread Chen Gang
Hello All: I also found another bug: I did not set the system call error number to r1 register, which will cause new_heap() fail although mmap64 succeed. Hope it is my last bug for printing "Hello world" executable binary. Thanks. On 05/12/2015 07:16 PM, Chen Gang wrote: > On 05/12/2015 07:08 P

[Qemu-devel] [PATCH] qemu-iotests: Fix 128 if sudo required

2015-05-18 Thread Fam Zheng
If passwordless "sudo" works, use it in the qemu-io cmd. Signed-off-by: Fam Zheng --- tests/qemu-iotests/128 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/128 b/tests/qemu-iotests/128 index 249a865..e2a0f2f 100755 --- a/tests/qemu-iotests/128 +++ b/tes

Re: [Qemu-devel] [PATCHv2 1/3] Add specific config options for PCI-E bridges

2015-05-18 Thread Shannon Zhao
Hi, I'm testing PCIe root port (ioh3420) on ARM64. Firstly I use following simple command line to check whether it works. qemu-system-aarch64 -M virt -device ioh3420 But it fails with below log: qemu-system-aarch64: -device ioh3420: Device initialization failed qemu-system-aarch64: -device ioh3

Re: [Qemu-devel] [PATCH v3 06/12] nbd-server: Clear "can_read" when "device io" blocker is set

2015-05-18 Thread Fam Zheng
On Mon, 05/18 20:35, Max Reitz wrote: > On 15.05.2015 08:04, Fam Zheng wrote: > >So that NBD export cannot submit IO during bdrv_drain_all(). > > > >Signed-off-by: Fam Zheng > >--- > > nbd.c | 18 ++ > > 1 file changed, 18 insertions(+) > > But can_read is not cleared until nbd_u

Re: [Qemu-devel] [PATCH v7 14/23] hw/acpi/aml-build: Add ToUUID macro

2015-05-18 Thread Shannon Zhao
On 2015/5/19 0:17, Michael S. Tsirkin wrote: > On Thu, May 14, 2015 at 05:19:33PM +0800, Shannon Zhao wrote: >> > From: Shannon Zhao >> > >> > Add ToUUID macro, this is useful for generating PCIe ACPI table. >> > >> > Signed-off-by: Shannon Zhao >> > Signed-off-by: Shannon Zhao >> > --- >> >

Re: [Qemu-devel] [PATCH v1 00/18] arm: Steps towards EL2 support round 3

2015-05-18 Thread Edgar E. Iglesias
On Mon, May 18, 2015 at 07:53:05PM +0100, Peter Maydell wrote: > On 13 May 2015 at 07:52, Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > > > Hi, > > > > This is round 3 of our series towards support for EL2 for AArch64. > > This series depends on Gregs exception target el infrastructu

Re: [Qemu-devel] [PATCH v1 04/18] target-arm: Route timer access traps to EL1

2015-05-18 Thread Edgar E. Iglesias
On Mon, May 18, 2015 at 07:41:29PM +0100, Peter Maydell wrote: > On 13 May 2015 at 07:52, Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > > > Signed-off-by: Edgar E. Iglesias > > --- > > target-arm/helper.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/target-arm/

Re: [Qemu-devel] [PATCH RESEND v1 0/5] Add Microblaze configuration options

2015-05-18 Thread Alistair Francis
On Tue, May 19, 2015 at 9:11 AM, Alistair Francis wrote: > Firstly this patch series tidies up some code and removes > a "xlnx." prefix. > Sorry about the spam. Not all of the emails went through the first time, so I swapped SMTP servers and am re-sending. Thanks, Alistair > Then it moves the

[Qemu-devel] [PATCH RESEND v1 5/5] target-microblaze: Convert use-fpu to a CPU property

2015-05-18 Thread Alistair Francis
Originally the use-fpu PVR bits were manually set for each machine. This is a hassle and difficult to read, instead set them based on the CPU properties. Signed-off-by: Alistair Francis --- Changes since RFC: - Tidy up the if logic hw/microblaze/petalogix_ml605_mmu.c |4 ++-- target-microb

Re: [Qemu-devel] [PATCH 00/10] Remove RDMA migration dependence on RAMBlock offset

2015-05-18 Thread Michael R. Hines
On 04/20/2015 10:57 AM, Dr. David Alan Gilbert (git) wrote: From: "Dr. David Alan Gilbert" RDMA migration currently relies on the source and destination RAMBlocks having the same offsets within ram_addr_t space; unfortunately that's just not true when: a) You hotplug on the source but then

[Qemu-devel] Newcomer -- clock issue

2015-05-18 Thread françois Guerret
Hello, I am a newcomer on QEMU so I would like to ask a few questions about the way QEMU works before beginning to develop. After some experiments and after having read the source code I understood that the time (the clocks) on which the timers are based in QEMU depends: on the host clock on t

[Qemu-devel] [PATCH 5/5] target-s390x: implement STPT helper

2015-05-18 Thread Aurelien Jarno
Save the timer target value in the SPT helper, so that the STPT helper can compute the remaining time. This allow the Linux kernel to correctly do time accounting. Cc: Alexander Graf Cc: Richard Henderson Signed-off-by: Aurelien Jarno --- target-s390x/misc_helper.c | 7 --- 1 file changed

[Qemu-devel] [PATCH 4/5] target-s390x: implement STCKC helper

2015-05-18 Thread Aurelien Jarno
The STCKC instruction just returns the last written clock comparator value and KVM already provides the corresponding variable. Cc: Alexander Graf Cc: Richard Henderson Signed-off-by: Aurelien Jarno --- target-s390x/misc_helper.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff

[Qemu-devel] [PATCH 2/5] target-s390x: simplify SCKC helper

2015-05-18 Thread Aurelien Jarno
The clock comparator and the QEMU timer work the same way, triggering at a given time, they just differ by the origin and the scale. It is therefore possible to go from one to another without using the current clock value. This spares two calls to qemu_clock_get_ns, which probably return slightly d

[Qemu-devel] [PATCH 3/5] target-s390x: streamline STCK helper

2015-05-18 Thread Aurelien Jarno
Now that clock_value is only used in one place, we can inline it in the STCK helper. Cc: Alexander Graf Cc: Richard Henderson Signed-off-by: Aurelien Jarno --- target-s390x/misc_helper.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/target-s390x/misc_helper.c b/t

[Qemu-devel] [PATCH 0/5] Clean and improve time related helpers

2015-05-18 Thread Aurelien Jarno
This patch series cleans and improves the time-of-day clock and CPU timer. Most notably it implements the STPT instruction, which allow the Linux kernel to do time accouting (so top reports correct values). Aurelien Jarno (5): target-s390x: add a tod2time function target-s390x: simplify SCKC h

[Qemu-devel] [PATCH 1/5] target-s390x: add a tod2time function

2015-05-18 Thread Aurelien Jarno
Add a tod2time function similar to the time2tod one, instead of open coding the conversion. Cc: Alexander Graf Cc: Richard Henderson Signed-off-by: Aurelien Jarno --- target-s390x/cpu.h | 5 + target-s390x/misc_helper.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) di

[Qemu-devel] [PATCH] ppc: add helpful message when KVM fails to start VCPU

2015-05-18 Thread Laurent Vivier
On POWER8 systems, KVM checks if VCPU is running on primary threads, and that secondary threads are offline. If this is not the case, ioctl() fails with errno set to EBUSY. QEMU aborts with a non explicit error message: $ ./qemu-system-ppc64 --nographic -machine pseries,accel=kvm error: kvm run fa

[Qemu-devel] [PATCH][RFC] Propogate the PCI device info till IOMMU

2015-05-18 Thread pmallapp
From: Prem Mallappa ARM SMMU requires PCI read/write memory requestors' Identification. This will propogate the "Device" information all the way till IOMMU device. ARM SMMU uses the device's ARID to index into tables on a per device basis. The ARM SMMU v3 device emulation will follow this patch s

[Qemu-devel] [PATCH][RFC] Propogate the PCI device info till IOMMU

2015-05-18 Thread pmallapp
From: Prem Mallappa ARM SMMU requires PCI read/write memory requestors' Identification. This will propogate the "Device" information all the way till IOMMU device. ARM SMMU uses the device's ARID to index into tables on a per device basis. The ARM SMMU v3 device emulation will follow this patch s

[Qemu-devel] [PATCH] PCI: Added new API which propogates the DMA initiator info

2015-05-18 Thread pmallapp
From: Prem Mallappa Signed-off-by: Prem Mallappa --- exec.c| 48 +--- include/exec/memory.h | 9 + include/hw/pci/pci.h | 8 +++- include/sysemu/dma.h | 17 + 4 files changed, 74 insertions(+), 8 deletio

[Qemu-devel] [PATCH] PCI: Added new API which propogates the DMA initiator info

2015-05-18 Thread pmallapp
From: Prem Mallappa Signed-off-by: Prem Mallappa --- exec.c| 48 +--- include/exec/memory.h | 9 + include/hw/pci/pci.h | 8 +++- include/sysemu/dma.h | 17 + 4 files changed, 74 insertions(+), 8 deletio

[Qemu-devel] [Bug 1312561] Re: libstdc++-6.dll is missing from your computer

2015-05-18 Thread JR Andreassen
Hi... This is still a problem with the latest build(qemu-wXX-setup-20150510.exe). I've tried with several different versions from the MinGW, neither work So, which is the correct NinGW version ? Thanks JR -- You received this bug notification because you are a member of qemu- devel-ml, whi

Re: [Qemu-devel] [RFC/RFT PATCH v2 1/3] arm/arm64: pageattr: add set_memory_nc

2015-05-18 Thread Catalin Marinas
On Thu, May 14, 2015 at 02:46:44PM +0100, Andrew Jones wrote: > On Thu, May 14, 2015 at 01:05:09PM +0200, Christoffer Dall wrote: > > On Wed, May 13, 2015 at 01:31:52PM +0200, Andrew Jones wrote: > > > Provide a method to change normal, cacheable memory to non-cacheable. > > > KVM will make use of

Re: [Qemu-devel] [RFC 0/2] macio: split out unaligned DMA access into separate functions

2015-05-18 Thread John Snow
On 03/09/2015 06:24 PM, Mark Cave-Ayland wrote: > This patchset attempts to separate out the IDE/ATAPI logic from the unaligned > DMA access logic for macio which provides the following benefits: > > 1) Reduced code complexity > > The existing macio IDE/ATAPI functions were becoming extremely d

Re: [Qemu-devel] [PATCH] linux-user: fix support for timerfd_create on arm

2015-05-18 Thread Peter Maydell
On 18 May 2015 at 17:42, Peter Maydell wrote: > Thanks for this patch; it's a dup of this one already on-list > and reviewed: > http://patchwork.ozlabs.org/patch/459490/ > > Riku: ping? or should I just take this via target-arm? I went ahead and did the latter, since I'm doing a pullreq anyway.

[Qemu-devel] [PULL 07/21] net: cadence_gem: Split state struct and type into header

2015-05-18 Thread Peter Maydell
From: Peter Crosthwaite Create a new header for Cadence GEM to allow using the device with modern SoC programming conventions. The state struct needs to be visible to embed the device in SoC containers. Reviewed-by: Alistair Francis Reviewed-by: Peter Maydell Reviewed-by: Edgar E. Iglesias Te

Re: [Qemu-devel] [PATCH v2] linux-user: Correct TARGET_NR_timerfd to TARGET_NR_timerfd_create.

2015-05-18 Thread Peter Maydell
On 8 April 2015 at 22:05, Peter Maydell wrote: > On 8 April 2015 at 21:40, Timothy E Baldwin > wrote: >> Misspelled system call name in macro was causing timerfd_create not >> to be supported for the ARM target. >> >> Signed-off-by: Timothy Edward Baldwin > > Thanks for the respin. Now applied

[Qemu-devel] [PULL 03/21] arm: Introduce Xilinx ZynqMP SoC

2015-05-18 Thread Peter Maydell
From: Peter Crosthwaite With quad Cortex-A53 CPUs. Use SMC PSCI, with the standard policy of secondaries starting in power-off. Tested-by: Alistair Francis Reviewed-by: Alistair Francis Reviewed-by: Edgar E. Iglesias Signed-off-by: Peter Crosthwaite Message-id: a16202a6c7b79e446e5289d38cb1

[Qemu-devel] [PULL 06/21] net: cadence_gem: Clean up variable names

2015-05-18 Thread Peter Maydell
From: Peter Crosthwaite Cleanup some variable names in preparation for migrating the state struct and type cast macro to a public header. The acronym "GEM" on its own is not specific enough to be used in a more global namespace so preface with "cadence". Fix the capitalisation of "gem" in the sta

[Qemu-devel] [PULL 09/21] char: cadence_uart: Clean up variable names

2015-05-18 Thread Peter Maydell
From: Peter Crosthwaite Clean up some variable names in preparation for migrating the state struct and type cast macro to a public header. The acronym "UART" on it's own is not specific enough to be used in a more global namespace so preface with "cadence". Fix the capitalisation of "uart" in the

[Qemu-devel] [PULL 08/21] arm: xlnx-zynqmp: Add GEM support

2015-05-18 Thread Peter Maydell
From: Peter Crosthwaite There are 4x Cadence GEMs in ZynqMP. Add them. Reviewed-by: Peter Maydell Tested-by: Alistair Francis Signed-off-by: Peter Crosthwaite Message-id: 7d3e68e5495d145255f0ee567046415e3a26d67e.1431381507.git.peter.crosthwa...@xilinx.com Signed-off-by: Peter Maydell --- h

[Qemu-devel] [PULL 20/21] target-arm: Correct accessfn for CNTV_TVAL_EL0

2015-05-18 Thread Peter Maydell
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias Message-id: 1431499963-1019-3-git-send-email-edgar.igles...@gmail.com Signed-off-by: Peter Maydell --- target-arm/helper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target-arm/helper.c b/target-arm/helper.c index b6d2310..21b

[Qemu-devel] [PULL 05/21] arm: xlnx-zynqmp: Connect CPU Timers to GIC

2015-05-18 Thread Peter Maydell
From: Peter Crosthwaite Connect the GPIO outputs from the individual CPUs for the timers to the GIC. Tested-by: Alistair Francis Reviewed-by: Edgar E. Iglesias Signed-off-by: Peter Crosthwaite Message-id: a7866a4f0c903c91fa3034210b4d2879aa4bfcb9.1431381507.git.peter.crosthwa...@xilinx.com Si

[Qemu-devel] [PULL 00/21] target-arm queue

2015-05-18 Thread Peter Maydell
0100) are available in the git repository at: git://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20150518-3 for you to fetch changes up to 18084b2f71b22b3ec3bf4828b8cb83d1d39e8502: target-arm: Remove unneeded '+' (2015-

[Qemu-devel] [PULL 13/21] arm: xlnx-ep108: Add external RAM

2015-05-18 Thread Peter Maydell
From: Peter Crosthwaite Zynq MPSoC supports external DDR RAM. Add a RAM at 0 to the model. Reviewed-by: Alistair Francis Tested-by: Alistair Francis Signed-off-by: Peter Crosthwaite Message-id: 2c25e2a4198402a6477aef2975d5df7c415dd341.1431381507.git.peter.crosthwa...@xilinx.com Signed-off-by

[Qemu-devel] [PULL 15/21] linux-user/arm: Correct TARGET_NR_timerfd to TARGET_NR_timerfd_create

2015-05-18 Thread Peter Maydell
From: Timothy Baldwin Misspelled system call name in macro was causing timerfd_create not to be supported for the ARM target. Signed-off-by: Timothy Edward Baldwin Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- linux-user/arm/syscall_nr.h | 2 +- 1 file changed, 1 insertion(+),

[Qemu-devel] [PULL 01/21] target-arm: cpu64: generalise name of A57 regs

2015-05-18 Thread Peter Maydell
From: Peter Crosthwaite Rename some A57 CP register variables in preparation for support for Cortex A53. Use "a57_a53" to describe the shareable features. Some of the CP15 registers (such as ACTLR) are specific to implementation, but we currently just RAZ them so continue with that as the policy

[Qemu-devel] [PULL 04/21] arm: xlnx-zynqmp: Add GIC

2015-05-18 Thread Peter Maydell
From: Peter Crosthwaite Add the GIC and connect IRQ outputs to the CPUs. The GIC regions are under-decoded through a 64k address region so implement aliases accordingly. Signed-off-by: Peter Crosthwaite Message-id: 5853189965728d676106d9e94e76b9bb87981cb5.1431381507.git.peter.crosthwa...@xilin

[Qemu-devel] [PULL 18/21] target-arm: Add WFx syndrome function

2015-05-18 Thread Peter Maydell
From: Greg Bellows Adds a utility function for creating a WFx exception syndrome Signed-off-by: Greg Bellows Reviewed-by: Peter Maydell Acked-by: Edgar E. Iglesias Message-id: 1429722561-12651-9-git-send-email-greg.bell...@linaro.org Signed-off-by: Peter Maydell --- target-arm/internals.h |

[Qemu-devel] [PULL 10/21] char: cadence_uart: Split state struct and type into header

2015-05-18 Thread Peter Maydell
From: Peter Crosthwaite Create a new header for Cadence UART to allow using the device with modern SoC programming conventions. The state struct needs to be visible to embed the device in SoC containers. Reviewed-by: Alistair Francis Reviewed-by: Peter Maydell Reviewed-by: Edgar E. Iglesias T

[Qemu-devel] [PULL 14/21] arm: xlnx-ep108: Add bootloading

2015-05-18 Thread Peter Maydell
From: Peter Crosthwaite Add bootloader support using standard ARM bootloader. Reviewed-by: Alistair Francis Tested-by: Alistair Francis Signed-off-by: Peter Crosthwaite Message-id: b829abaf2b70d02b28e79301553cbd74afc416a1.1431381507.git.peter.crosthwa...@xilinx.com Signed-off-by: Peter Mayde

[Qemu-devel] [PULL 16/21] target-arm: Add TTBR regime function and use

2015-05-18 Thread Peter Maydell
From: Greg Bellows Add a utility function for choosing the correct TTBR system register based on the specified MMU index. Add use of function on physical address lookup. Signed-off-by: Greg Bellows Acked-by: Edgar E. Iglesias Message-id: 1429722561-12651-7-git-send-email-greg.bell...@linaro.or

[Qemu-devel] [PULL 21/21] target-arm: Remove unneeded '+'

2015-05-18 Thread Peter Maydell
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias Reviewed-by: Alex Bennée Message-id: 1431499963-1019-4-git-send-email-edgar.igles...@gmail.com Signed-off-by: Peter Maydell --- target-arm/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-arm/helper.

[Qemu-devel] [PULL 11/21] arm: xlnx-zynqmp: Add UART support

2015-05-18 Thread Peter Maydell
From: Peter Crosthwaite There are 2x Cadence UARTs in Zynq MP. Add them. Reviewed-by: Alistair Francis Reviewed-by: Peter Maydell Tested-by: Alistair Francis Signed-off-by: Peter Crosthwaite Message-id: e30795536f77599fabc1052278d846ccd52322e2.1431381507.git.peter.crosthwa...@xilinx.com Sig

[Qemu-devel] [PULL 19/21] target-arm: Correct accessfn for CNTP_{CT}VAL_EL0

2015-05-18 Thread Peter Maydell
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias Message-id: 1431499963-1019-2-git-send-email-edgar.igles...@gmail.com Signed-off-by: Peter Maydell --- target-arm/helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target-arm/helper.c b/target-arm/helper.c

[Qemu-devel] [PULL 02/21] target-arm: cpu64: Add support for Cortex-A53

2015-05-18 Thread Peter Maydell
From: Peter Crosthwaite Add the ARM Cortex-A53 processor definition. Similar to A57, but with different L1 I cache policy, phys addr size and different cache geometries. The cache sizes is implementation configurable, but use these values (from Xilinx Zynq MPSoC) as a default until cache size con

[Qemu-devel] [PULL 12/21] arm: Add xlnx-ep108 machine

2015-05-18 Thread Peter Maydell
From: Peter Crosthwaite Add a machine model for the Xilinx ZynqMP SoC EP108 board. Reviewed-by: Alistair Francis Reviewed-by: Peter Maydell Reviewed-by: Edgar E. Iglesias Tested-by: Alistair Francis Signed-off-by: Peter Crosthwaite Message-id: 3896b34c862f370dc0679e4428bf3848d1f9f83c.14313

[Qemu-devel] [PULL 17/21] target-arm: Add EL3 and EL2 TCR checking

2015-05-18 Thread Peter Maydell
From: Greg Bellows Updated get_phys_addr_lpae to check the appropriate TTBCR/TCR depending on the current EL. Support includes using the different TCR format as well as checks to insure TTBR1 is not used when in EL2 or EL3. Signed-off-by: Greg Bellows Acked-by: Edgar E. Iglesias Message-id: 14

  1   2   3   >