Re: [Qemu-devel] [RFC] How to deal with the conflict between DE keymap and qemu console ?

2014-05-22 Thread Gerd Hoffmann
Hi, Works perfectly fine for me. What vnc client is this? I tested two kinds of vnc clients: 1) VNC Viewer Free Edition 4.1.2 2) TightVNC Viewer for Windows Version 2.6.4 Ah, windows vnc clients. I've tested with linux. I'll have a look. Do you have download links for me? thanks,

Re: [Qemu-devel] [RFC] How to deal with the conflict between DE keymap and qemu console ?

2014-05-22 Thread Gonglei (Arei)
-Original Message- From: Gerd Hoffmann [mailto:kra...@redhat.com] Sent: Thursday, May 22, 2014 2:00 PM To: Gonglei (Arei) Cc: qemu-devel@nongnu.org Subject: Re: [RFC] How to deal with the conflict between DE keymap and qemu console ? Hi, Works perfectly fine for me.

Re: [Qemu-devel] [PATCH] inet_listen_opts: add error checking

2014-05-22 Thread Gonglei (Arei)
-Original Message- From: Gerd Hoffmann [mailto:kra...@redhat.com] Sent: Thursday, May 22, 2014 1:44 PM To: Gonglei (Arei) Cc: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] [PATCH] inet_listen_opts: add error checking /* lookup */ -if (port_offset) -

Re: [Qemu-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-22 Thread Chen, Tiejun
-Original Message- From: Gerd Hoffmann [mailto:kra...@redhat.com] Sent: Thursday, May 22, 2014 1:40 PM To: Chen, Tiejun Cc: Anthony PERARD; Daniel P. Berrange; peter.mayd...@linaro.org; xen-de...@lists.xensource.com; m...@redhat.com; stefano.stabell...@eu.citrix.com; Kay, Allen M;

Re: [Qemu-devel] [PATCH 00/25] qemu gtk ui overhaul

2014-05-22 Thread Gerd Hoffmann
Hi, I noticed that some issues with the old code still exist: when Show tabs is enabled and disabled again, QEMU adds some black scan lines at the top of the VGA screen. This can be easily reproduced. Easily fixed, was just a missing gd_update_windowsize call. Another small problem is

[Qemu-devel] [PATCH 0/2] dataplane: Enable scsi=on

2014-05-22 Thread Fam Zheng
This makes the SG_IO code of non-dataplane available to dataplane, so that dataplane can use to allow scsi=on. Fam Fam Zheng (2): virtio-blk: Factor out virtio_blk_handle_scsi_req from virtio_blk_handle_scsi dataplane: Support VIRTIO_BLK_T_SCSI_CMD hw/block/dataplane/virtio-blk.c |

[Qemu-devel] [PATCH 1/2] virtio-blk: Factor out virtio_blk_handle_scsi_req from virtio_blk_handle_scsi

2014-05-22 Thread Fam Zheng
The common logic to process a scsi request in a VirtQueueElement is extracted to a function to share with dataplane. Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/virtio-blk.c | 77 ++ include/hw/virtio/virtio-blk.h | 3 ++ 2 files

[Qemu-devel] [PATCH 2/2] dataplane: Support VIRTIO_BLK_T_SCSI_CMD

2014-05-22 Thread Fam Zheng
Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/dataplane/virtio-blk.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c index 46a6824..6a66196 100644 ---

Re: [Qemu-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-22 Thread Gerd Hoffmann
Hi, Another useful thing would be to not create the xen platform device in case -nodefaults was specified on the command line (that switch turns off a bunch of other devices present by default: vga, nic, cdrom, ...). Currently looks 'xen-platform' itself can't be created, not those

Re: [Qemu-devel] [PATCH v2 1/7] iotests: Allow out-of-tree run

2014-05-22 Thread Fam Zheng
On Tue, 05/20 22:23, Max Reitz wrote: As out-of-tree builds are preferred for qemu, running the qemu-iotests in that out-of-tree build should be supported as well. To do so, a symbolic link has to be created pointing to the check script in the source directory. That script will check whether

Re: [Qemu-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-22 Thread Michael S. Tsirkin
On Thu, May 22, 2014 at 08:44:41AM +0200, Gerd Hoffmann wrote: Hi, Another useful thing would be to not create the xen platform device in case -nodefaults was specified on the command line (that switch turns off a bunch of other devices present by default: vga, nic, cdrom,

Re: [Qemu-devel] [PATCH v2 8/8] spapr_pci: Use XICS interrupt allocator and do not cache interrupts in PHB

2014-05-22 Thread Alexey Kardashevskiy
On 05/21/2014 10:42 PM, Alexey Kardashevskiy wrote: On 05/21/2014 08:35 PM, Alexander Graf wrote: On 21.05.14 12:13, Alexey Kardashevskiy wrote: On 05/21/2014 07:50 PM, Alexander Graf wrote: On 21.05.14 11:33, Alexey Kardashevskiy wrote: On 05/21/2014 07:13 PM, Alexander Graf wrote: On

Re: [Qemu-devel] [PATCH 00/25] qemu gtk ui overhaul

2014-05-22 Thread Paolo Bonzini
Il 22/05/2014 08:24, Gerd Hoffmann ha scritto: I suspect this is the menu bar. Current code tries to hide it by forcing the widget size to 0x0. In gtk2 this results in a small white line at the top of the screen, probably because the minimum widget size in gtk is 1x1. In gtk3 this doesn't

Re: [Qemu-devel] [PATCH 1/2] virtio-blk: Factor out virtio_blk_handle_scsi_req from virtio_blk_handle_scsi

2014-05-22 Thread Paolo Bonzini
Il 22/05/2014 08:36, Fam Zheng ha scritto: - -if (!req-dev-blk.scsi) { -status = VIRTIO_BLK_S_UNSUPP; -goto fail; -} Where did you move this condition? Also, the scsi field of VirtIOBlockReq is now unused. Paolo

Re: [Qemu-devel] [PATCH 2/2] dataplane: Support VIRTIO_BLK_T_SCSI_CMD

2014-05-22 Thread Paolo Bonzini
Il 22/05/2014 08:36, Fam Zheng ha scritto: Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/dataplane/virtio-blk.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c index

Re: [Qemu-devel] [PATCH 3/7] monitor: Add migrate_set_capability completion.

2014-05-22 Thread Markus Armbruster
Dr. David Alan Gilbert dgilb...@redhat.com writes: * Hani Benhabiles (kroo...@gmail.com) wrote: Signed-off-by: Hani Benhabiles h...@linux.com --- hmp-commands.hx | 1 + hmp.h | 2 ++ monitor.c | 21 + 3 files changed, 24 insertions(+) diff --git

Re: [Qemu-devel] [PATCH 0/2] dataplane: Enable scsi=on

2014-05-22 Thread Paolo Bonzini
Il 22/05/2014 08:36, Fam Zheng ha scritto: This makes the SG_IO code of non-dataplane available to dataplane, so that dataplane can use to allow scsi=on. I like the idea of using more hw/block/virtio-blk.c code in the dataplane thread. We should turn this into an actual plan to remove more

Re: [Qemu-devel] [PATCH 2/9] target-ppc: Refactor init_proc_POWER7

2014-05-22 Thread Alexander Graf
Am 22.05.2014 um 05:59 schrieb Alexey Kardashevskiy a...@ozlabs.ru: On 05/21/2014 11:23 PM, Alexander Graf wrote: On 21.05.14 14:30, Alexey Kardashevskiy wrote: On 05/21/2014 08:44 PM, Alexander Graf wrote: On 21.05.14 08:20, Alexey Kardashevskiy wrote: This moves SPR initialization to

Re: [Qemu-devel] [PATCH 8/9] spapr_iommu: Introduce page_shift in sPAPRTCETable

2014-05-22 Thread Alexander Graf
Am 22.05.2014 um 06:25 schrieb Alexey Kardashevskiy a...@ozlabs.ru: On 05/22/2014 08:11 AM, Alexander Graf wrote: On 21.05.14 16:21, Alexey Kardashevskiy wrote: At the moment only 4K pages are supported by sPAPRTCETable. Since sPAPR spec allows other page sizes and we are going to

Re: [Qemu-devel] [PATCH 1/2] virtio-blk: Factor out virtio_blk_handle_scsi_req from virtio_blk_handle_scsi

2014-05-22 Thread Fam Zheng
On Thu, 05/22 09:03, Paolo Bonzini wrote: Il 22/05/2014 08:36, Fam Zheng ha scritto: - -if (!req-dev-blk.scsi) { -status = VIRTIO_BLK_S_UNSUPP; -goto fail; -} Where did you move this condition? Also, the scsi field of VirtIOBlockReq is now unused. Just realized

Re: [Qemu-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-22 Thread Chen, Tiejun
-Original Message- From: Gerd Hoffmann [mailto:kra...@redhat.com] Sent: Thursday, May 22, 2014 2:45 PM To: Chen, Tiejun Cc: Anthony PERARD; Daniel P. Berrange; peter.mayd...@linaro.org; xen-de...@lists.xensource.com; m...@redhat.com; stefano.stabell...@eu.citrix.com; Kay, Allen M;

Re: [Qemu-devel] [PATCH v2 8/8] spapr_pci: Use XICS interrupt allocator and do not cache interrupts in PHB

2014-05-22 Thread Alexander Graf
Am 22.05.2014 um 08:53 schrieb Alexey Kardashevskiy a...@ozlabs.ru: On 05/21/2014 10:42 PM, Alexey Kardashevskiy wrote: On 05/21/2014 08:35 PM, Alexander Graf wrote: On 21.05.14 12:13, Alexey Kardashevskiy wrote: On 05/21/2014 07:50 PM, Alexander Graf wrote: On 21.05.14 11:33, Alexey

[Qemu-devel] [PATCH] xen: make xen-platform a default device

2014-05-22 Thread Gerd Hoffmann
Patch hooks up the xen platform device to the default device code we have in qemu. Two effects: (1) The device will not be created in case -nodefaults is specified on the command line. (2) Autocreating the device is also turned off in case xen-platform is added manually via

[Qemu-devel] [PATCH v2 1/2] openpic: Move definition of openpic_reset

2014-05-22 Thread Paul Janzen
This patch moves the definition of openpic_reset after the various register read/write functions. No functional change. It is in preparation for using the register read/write functions in openpic_reset. Signed-off-by: Paul Janzen p...@pauljanzen.org --- hw/intc/openpic.c | 99

Re: [Qemu-devel] [PATCH] xen: make xen-platform a default device

2014-05-22 Thread Michael S. Tsirkin
On Thu, May 22, 2014 at 09:20:50AM +0200, Gerd Hoffmann wrote: Patch hooks up the xen platform device to the default device code we have in qemu. Two effects: (1) The device will not be created in case -nodefaults is specified on the command line. (2) Autocreating the device is

[Qemu-devel] [PATCH v2 2/2] openpic: Reset IRQ source private members

2014-05-22 Thread Paul Janzen
The openpic emulation code maintains an allowable-CPU's bitmap (destmask) for each IRQ source which is calculated from the IDR register value whenever the guest OS writes to it. However, if the guest OS relies on the system to set the IDR register to a default value at reset, and does not write

Re: [Qemu-devel] [PATCH v3 16/22] target-arm: A64: Generalize ERET to various ELs

2014-05-22 Thread Peter Maydell
On 22 May 2014 01:48, Edgar E. Iglesias edgar.igles...@gmail.com wrote: On Wed, May 21, 2014 at 08:20:20PM +0100, Peter Maydell wrote: it needs to also fix the bit in the returning to an exception level which is 32 bit which says new_el = 0 since that's not guaranteed to be true any more.

Re: [Qemu-devel] [PATCH] spapr_iommu: Replace @instance_id with LIOBN for migration

2014-05-22 Thread Alexey Kardashevskiy
On 05/12/2014 06:46 PM, Alexey Kardashevskiy wrote: SPAPR IOMMU is a bus-less device and therefore its only ID in migration stream is an instance id which is not reliable ID as it depends on the command line parameters order. Since libvirt may change the order, we need something better than

Re: [Qemu-devel] [PATCH v2 16/23] target-arm: Use arm_current_sctlr to access SCTLR

2014-05-22 Thread Edgar E. Iglesias
On Tue, May 13, 2014 at 06:16:01PM +0200, Fabian Aggeler wrote: Add SCTLR_EL3 and introduce new function to access correct instance of SCTLR in different modes/worlds. Hi, AArch64 has a couple of insn/regs that do address translation as seen by other ELs. E.g, from EL3 you can perform address

[Qemu-devel] [PATCH v2 0/2] dataplane: Enable scsi=on

2014-05-22 Thread Fam Zheng
This makes the SG_IO code of non-dataplane available to dataplane, so that dataplane can use to allow scsi=on. v2: [1/2] Fix scsi=off case and drop VirtIOBlockReq.scsi. [2/2] Pass conf to virtio_blk_handle_scsi_req. Fam Fam Zheng (2): virtio-blk: Factor out virtio_blk_handle_scsi_req

[Qemu-devel] [PATCH v2 2/2] dataplane: Support VIRTIO_BLK_T_SCSI_CMD

2014-05-22 Thread Fam Zheng
Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/dataplane/virtio-blk.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c index 46a6824..e833045 100644 ---

[Qemu-devel] [PATCH v2 1/2] virtio-blk: Factor out virtio_blk_handle_scsi_req from virtio_blk_handle_scsi

2014-05-22 Thread Fam Zheng
The common logic to process a scsi request in a VirtQueueElement is extracted to a function to share with dataplane. This makes VirtIOBlockReq.scsi unused, so drop it. Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/virtio-blk.c | 83 +++---

Re: [Qemu-devel] [PATCH v2 14/23] target-arm: add banked coprocessor register type and macros

2014-05-22 Thread Edgar E. Iglesias
On Tue, May 13, 2014 at 06:15:59PM +0200, Fabian Aggeler wrote: Banked CP registers can be defined with a A32_BANKED_REG macro which defines a non-secure instance of the register followed by an adjacent secure instance. Using a union makes the code backwards-compatible since the non-secure

Re: [Qemu-devel] [PATCH v2 1/2] virtio-blk: Factor out virtio_blk_handle_scsi_req from virtio_blk_handle_scsi

2014-05-22 Thread Paolo Bonzini
Il 22/05/2014 09:37, Fam Zheng ha scritto: -static void virtio_blk_handle_scsi(VirtIOBlockReq *req) +int virtio_blk_handle_scsi_req(BlockDriverState *bs, + VirtIOBlkConf *conf, + VirtQueueElement *elem) Two more comments... please

[Qemu-devel] [PATCH v3 0/2] dataplane: Enable scsi=on

2014-05-22 Thread Fam Zheng
This makes the SG_IO code of non-dataplane available to dataplane, so that dataplane can use to allow scsi=on. v3: Change parameter to VirtIOBlock pointer. Undo the swap in code movement. (Paolo) v2: [1/2] Fix scsi=off case and drop VirtIOBlockReq.scsi. [2/2] Pass conf to

[Qemu-devel] [PATCH v3 1/2] virtio-blk: Factor out virtio_blk_handle_scsi_req from virtio_blk_handle_scsi

2014-05-22 Thread Fam Zheng
The common logic to process a scsi request in a VirtQueueElement is extracted to a function to share with dataplane. This makes VirtIOBlockReq.scsi unused, so drop it. Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/virtio-blk.c | 75 +++---

[Qemu-devel] [PATCH v3 2/2] dataplane: Support VIRTIO_BLK_T_SCSI_CMD

2014-05-22 Thread Fam Zheng
Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/dataplane/virtio-blk.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c index 46a6824..03cbdec 100644 ---

Re: [Qemu-devel] [PATCH v3 0/2] dataplane: Enable scsi=on

2014-05-22 Thread Paolo Bonzini
Il 22/05/2014 10:22, Fam Zheng ha scritto: This makes the SG_IO code of non-dataplane available to dataplane, so that dataplane can use to allow scsi=on. v3: Change parameter to VirtIOBlock pointer. Undo the swap in code movement. (Paolo) v2: [1/2] Fix scsi=off case and drop

Re: [Qemu-devel] [PATCH v1 RFC 6/6] KVM: s390: add cpu model support

2014-05-22 Thread Paolo Bonzini
Il 22/05/2014 10:23, Michael Mueller ha scritto: On Wed, 21 May 2014 15:22:35 +0200 Alexander Graf ag...@suse.de wrote: I have seen the slides from Eduardo which he presented during this years DevConf in Brno and made my comments according the s390x implementation on that. Is you will see, this

Re: [Qemu-devel] [PATCH v2 04/23] target-arm: preserve RAO/WI bits of ARMv7 SCTLR

2014-05-22 Thread Aggeler Fabian
On 21 May 2014, at 18:12, Peter Maydell peter.mayd...@linaro.org wrote: On 14 May 2014 06:43, Sergey Fedorov serge.f...@gmail.com wrote: On 13.05.2014 20:15, Fabian Aggeler wrote: From: Svetlana Fedoseeva s.fedose...@samsung.com Signed-off-by: Svetlana Fedoseeva s.fedose...@samsung.com

[Qemu-devel] [PATCH] virtio-pci: report an error when disable msix

2014-05-22 Thread Amos Kong
QEMU remains 4k memory for PCI BAR, each msix entry takes 16 bytes. If user assigns more than 128 vectors, msix resource isn't enough, so msix will be disabled. This patch addes a note when fail to init exclusive bars for msix. qemu -device virtio-net-pci,netdev=h1,vectors=129,mq=on \

Re: [Qemu-devel] [PATCH v2 01/23] target-arm: add new CPU feature for Security Extensions

2014-05-22 Thread Aggeler Fabian
On 21 May 2014, at 16:51, Peter Maydell peter.mayd...@linaro.org wrote: On 13 May 2014 17:15, Fabian Aggeler aggel...@ethz.ch wrote: --- a/target-arm/cpu.h +++ b/target-arm/cpu.h @@ -631,6 +631,7 @@ enum arm_features { ARM_FEATURE_CBAR, /* has cp15 CBAR */ ARM_FEATURE_CRC, /* ARMv8

Re: [Qemu-devel] [PATCH] virtio-pci: report an error when disable msix

2014-05-22 Thread Michael S. Tsirkin
On Thu, May 22, 2014 at 05:02:17PM +0800, Amos Kong wrote: QEMU remains 4k memory for PCI BAR, each msix entry takes 16 bytes. If user assigns more than 128 vectors, msix resource isn't enough, so msix will be disabled. This patch addes a note when fail to init exclusive bars for msix.

Re: [Qemu-devel] [PATCH] virtio-pci: report an error when disable msix

2014-05-22 Thread Peter Maydell
On 22 May 2014 10:02, Amos Kong ak...@redhat.com wrote: QEMU remains 4k memory for PCI BAR, each msix entry takes 16 bytes. If user assigns more than 128 vectors, msix resource isn't enough, so msix will be disabled. This patch addes a note when fail to init exclusive bars for msix. qemu

[Qemu-devel] [PATCH] docs: clarify that qcow2 file size is not always a cluster multiple

2014-05-22 Thread Stefan Hajnoczi
Normally one would expect that qcow2 image file lengths are multiples of the cluster size. This is not true in all cases and the spec should document this so implementers remember to accept such files. $ qemu-img create -f qcow2 foo.qcow2 2G Formatting 'foo.qcow2', fmt=qcow2 size=2147483648

Re: [Qemu-devel] [Xen-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-22 Thread Konrad Rzeszutek Wilk
On Thu, May 22, 2014 at 07:39:36AM +0200, Gerd Hoffmann wrote: Hi, According to our discussions, I realize we may have some plans or policies dedicated to how to assign devfn, but to support GFX passthrough for XEN, I think currently it may be a better solution to adopt #1 simply

Re: [Qemu-devel] [PATCH 8/9] spapr_iommu: Introduce page_shift in sPAPRTCETable

2014-05-22 Thread Alexander Graf
On 22.05.14 01:45, Alexey Kardashevskiy wrote: On 05/22/2014 08:11 AM, Alexander Graf wrote: On 21.05.14 16:21, Alexey Kardashevskiy wrote: At the moment only 4K pages are supported by sPAPRTCETable. Since sPAPR spec allows other page sizes and we are going to implement them, we need page

Re: [Qemu-devel] [PATCH v2 1/2] openpic: Move definition of openpic_reset

2014-05-22 Thread Alexander Graf
On 22.05.14 06:46, Paul Janzen wrote: This patch moves the definition of openpic_reset after the various register read/write functions. No functional change. It is in preparation for using the register read/write functions in openpic_reset. Signed-off-by: Paul Janzen p...@pauljanzen.org

Re: [Qemu-devel] [Qemu-ppc] [PATCH] openpic: Initialize destmask at reset

2014-05-22 Thread Alexander Graf
On 21.05.14 21:47, Alexander Graf wrote: Am 21.05.2014 um 18:33 schrieb Paul Janzen p...@pauljanzen.org: On Wed, May 21, 2014 at 12:45 AM, Alexander Graf ag...@suse.de wrote: Or maybe it's safer overall to just call write_IRQreg_idr() instead of setting idr directly? That would update

Re: [Qemu-devel] [PATCH 4/7] virtio-blk: use aliases instead of duplicate qdev properties

2014-05-22 Thread Stefan Hajnoczi
On Thu, May 22, 2014 at 12:04 AM, Paolo Bonzini pbonz...@redhat.com wrote: Il 21/05/2014 22:22, Stefan Hajnoczi ha scritto: virtio-blk-pci, virtio-blk-s390, and virtio-blk-ccw all duplicate the qdev properties of their VirtIOBlock child. This approach does not work well with string or

Re: [Qemu-devel] [PATCH 4/7] virtio-blk: use aliases instead of duplicate qdev properties

2014-05-22 Thread Andreas Färber
Am 22.05.2014 00:04, schrieb Paolo Bonzini: Il 21/05/2014 22:22, Stefan Hajnoczi ha scritto: virtio-blk-pci, virtio-blk-s390, and virtio-blk-ccw all duplicate the qdev properties of their VirtIOBlock child. This approach does not work well with string or pointer properties since we must be

Re: [Qemu-devel] [PATCH 1/7] qom: add object_property_add_alias()

2014-05-22 Thread Stefan Hajnoczi
On Thu, May 22, 2014 at 12:05 AM, Paolo Bonzini pbonz...@redhat.com wrote: Il 21/05/2014 22:22, Stefan Hajnoczi ha scritto: +void object_property_add_alias(Object *obj, const char *name, + Object *target_obj, const char *target_name, +

Re: [Qemu-devel] [PATCH 4/7] virtio-blk: use aliases instead of duplicate qdev properties

2014-05-22 Thread Stefan Hajnoczi
On Thu, May 22, 2014 at 12:18 PM, Andreas Färber afaer...@suse.de wrote: Am 22.05.2014 00:04, schrieb Paolo Bonzini: Il 21/05/2014 22:22, Stefan Hajnoczi ha scritto: virtio-blk-pci, virtio-blk-s390, and virtio-blk-ccw all duplicate the qdev properties of their VirtIOBlock child. This approach

Re: [Qemu-devel] [PATCH 8/9] spapr_iommu: Introduce page_shift in sPAPRTCETable

2014-05-22 Thread Alexey Kardashevskiy
On 05/22/2014 08:09 PM, Alexander Graf wrote: On 22.05.14 01:45, Alexey Kardashevskiy wrote: On 05/22/2014 08:11 AM, Alexander Graf wrote: On 21.05.14 16:21, Alexey Kardashevskiy wrote: At the moment only 4K pages are supported by sPAPRTCETable. Since sPAPR spec allows other page sizes and

Re: [Qemu-devel] [PATCH 4/7] virtio-blk: use aliases instead of duplicate qdev properties

2014-05-22 Thread Andreas Färber
Am 22.05.2014 12:24, schrieb Stefan Hajnoczi: On Thu, May 22, 2014 at 12:18 PM, Andreas Färber afaer...@suse.de wrote: Am 22.05.2014 00:04, schrieb Paolo Bonzini: Il 21/05/2014 22:22, Stefan Hajnoczi ha scritto: virtio-blk-pci, virtio-blk-s390, and virtio-blk-ccw all duplicate the qdev

Re: [Qemu-devel] [PATCH 8/9] spapr_iommu: Introduce page_shift in sPAPRTCETable

2014-05-22 Thread Alexander Graf
On 22.05.14 12:24, Alexey Kardashevskiy wrote: On 05/22/2014 08:09 PM, Alexander Graf wrote: On 22.05.14 01:45, Alexey Kardashevskiy wrote: On 05/22/2014 08:11 AM, Alexander Graf wrote: On 21.05.14 16:21, Alexey Kardashevskiy wrote: At the moment only 4K pages are supported by

Re: [Qemu-devel] [PATCH v2] spapr: Enable dynamic change of the supported hypercalls list

2014-05-22 Thread Alexander Graf
On 21.05.14 17:21, Alexey Kardashevskiy wrote: At the moment the ibm,hypertas-functions list is fixed. However some calls should be listed there if they are supported by QEMU or the host kernel. This enables hyperrtas_prop to grow on stack by adding a SPAPR_HYPERRTAS_ADD macro.

Re: [Qemu-devel] [PATCH 8/9] spapr_iommu: Introduce page_shift in sPAPRTCETable

2014-05-22 Thread Alexey Kardashevskiy
On 05/22/2014 08:45 PM, Alexander Graf wrote: On 22.05.14 12:24, Alexey Kardashevskiy wrote: On 05/22/2014 08:09 PM, Alexander Graf wrote: On 22.05.14 01:45, Alexey Kardashevskiy wrote: On 05/22/2014 08:11 AM, Alexander Graf wrote: On 21.05.14 16:21, Alexey Kardashevskiy wrote: At the

Re: [Qemu-devel] [PATCH 8/9] spapr_iommu: Introduce page_shift in sPAPRTCETable

2014-05-22 Thread Alexander Graf
On 22.05.14 12:46, Alexey Kardashevskiy wrote: On 05/22/2014 08:45 PM, Alexander Graf wrote: On 22.05.14 12:24, Alexey Kardashevskiy wrote: On 05/22/2014 08:09 PM, Alexander Graf wrote: On 22.05.14 01:45, Alexey Kardashevskiy wrote: On 05/22/2014 08:11 AM, Alexander Graf wrote: On 21.05.14

Re: [Qemu-devel] [RFC 0/3] cpu: add device_add foo-x86_64-cpu support

2014-05-22 Thread Andreas Färber
Hi, Am 22.05.2014 04:33, schrieb chen.fan.f...@cn.fujitsu.com: I think if we want to use 'device/device_add' to implement CPU, we must do some check before qemu_init_vcpu(). how can we to do that? We ran into such problems before... If need be, we can change from the old parent_realize

Re: [Qemu-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-22 Thread Chen, Tiejun
-Original Message- From: Gerd Hoffmann [mailto:kra...@redhat.com] Sent: Thursday, May 22, 2014 2:45 PM To: Chen, Tiejun Cc: Anthony PERARD; Daniel P. Berrange; peter.mayd...@linaro.org; xen-de...@lists.xensource.com; m...@redhat.com; stefano.stabell...@eu.citrix.com; Kay, Allen M;

[Qemu-devel] [PATCH 1/2] vmstate: Add helper to enable GHashTable migration

2014-05-22 Thread Alexey Kardashevskiy
This adds a VMSTATE_HASH_V macro. This implements put/get callbacks for it. This implements a qemu_hash_init() wrapper to save key/value sizes. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- include/migration/vmstate.h | 10 + include/qemu-common.h | 13 +++

[Qemu-devel] [PATCH 2/2] spapr_pci: Use XICS interrupt allocator and do not cache interrupts in PHB

2014-05-22 Thread Alexey Kardashevskiy
Currently SPAPR PHB keeps track of all allocated MSI/MISX interrupt as XICS used to be unable to reuse interrupts which becomes a problem for dynamic MSI reconfiguration which is happening on guest driver reload or PCI hot (un)plug. Another problem is that PHB has a limit of devices supporting

Re: [Qemu-devel] [PATCH v2 8/8] spapr_pci: Use XICS interrupt allocator and do not cache interrupts in PHB

2014-05-22 Thread Alexey Kardashevskiy
On 05/22/2014 05:16 PM, Alexander Graf wrote: Am 22.05.2014 um 08:53 schrieb Alexey Kardashevskiy a...@ozlabs.ru: On 05/21/2014 10:42 PM, Alexey Kardashevskiy wrote: On 05/21/2014 08:35 PM, Alexander Graf wrote: On 21.05.14 12:13, Alexey Kardashevskiy wrote: On 05/21/2014 07:50 PM,

Re: [Qemu-devel] [PATCH 8/9] spapr_iommu: Introduce page_shift in sPAPRTCETable

2014-05-22 Thread Alexey Kardashevskiy
On 05/22/2014 08:48 PM, Alexander Graf wrote: On 22.05.14 12:46, Alexey Kardashevskiy wrote: On 05/22/2014 08:45 PM, Alexander Graf wrote: On 22.05.14 12:24, Alexey Kardashevskiy wrote: On 05/22/2014 08:09 PM, Alexander Graf wrote: On 22.05.14 01:45, Alexey Kardashevskiy wrote: On

Re: [Qemu-devel] [PATCH 1/2] vmstate: Add helper to enable GHashTable migration

2014-05-22 Thread Alexander Graf
On 22.05.14 12:53, Alexey Kardashevskiy wrote: This adds a VMSTATE_HASH_V macro. This implements put/get callbacks for it. This implements a qemu_hash_init() wrapper to save key/value sizes. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- include/migration/vmstate.h | 10 +

Re: [Qemu-devel] [PATCH v2 8/8] spapr_pci: Use XICS interrupt allocator and do not cache interrupts in PHB

2014-05-22 Thread Alexander Graf
On 22.05.14 12:53, Alexey Kardashevskiy wrote: On 05/22/2014 05:16 PM, Alexander Graf wrote: Am 22.05.2014 um 08:53 schrieb Alexey Kardashevskiy a...@ozlabs.ru: On 05/21/2014 10:42 PM, Alexey Kardashevskiy wrote: On 05/21/2014 08:35 PM, Alexander Graf wrote: On 21.05.14 12:13, Alexey

Re: [Qemu-devel] [PATCH] xen: make xen-platform a default device

2014-05-22 Thread Chen, Tiejun
-Original Message- From: qemu-devel-bounces+tiejun.chen=intel@nongnu.org [mailto:qemu-devel-bounces+tiejun.chen=intel@nongnu.org] On Behalf Of Michael S. Tsirkin Sent: Thursday, May 22, 2014 3:22 PM To: Gerd Hoffmann Cc: qemu-devel@nongnu.org; Anthony Liguori Subject: Re:

[Qemu-devel] [PATCH 0/3] console: text terminal updates

2014-05-22 Thread Gerd Hoffmann
Hi, These tree patches make the text terminal consoles support multiple windows, i.e. work correctly in case a displaychangelistener binds a text terminal explicitly to a fixed QemuConsole by setting dcl-con. Use case:

[Qemu-devel] [PATCH 1/3] console: update text terminal surface unconditionally

2014-05-22 Thread Gerd Hoffmann
These days each QemuConsole has its own private DisplaySurface, so we can simply render updates all the time. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- ui/console.c | 127 ++- 1 file changed, 56 insertions(+), 71 deletions(-) diff

Re: [Qemu-devel] [PATCH v2] spapr: Enable dynamic change of the supported hypercalls list

2014-05-22 Thread Alexey Kardashevskiy
On 05/22/2014 08:47 PM, Alexander Graf wrote: On 21.05.14 17:21, Alexey Kardashevskiy wrote: At the moment the ibm,hypertas-functions list is fixed. However some calls should be listed there if they are supported by QEMU or the host kernel. This enables hyperrtas_prop to grow on stack by

Re: [Qemu-devel] [PATCH] xen: make xen-platform a default device

2014-05-22 Thread Michael S. Tsirkin
On Thu, May 22, 2014 at 10:57:54AM +, Chen, Tiejun wrote: -Original Message- From: qemu-devel-bounces+tiejun.chen=intel@nongnu.org [mailto:qemu-devel-bounces+tiejun.chen=intel@nongnu.org] On Behalf Of Michael S. Tsirkin Sent: Thursday, May 22, 2014 3:22 PM To: Gerd

[Qemu-devel] [PATCH 3/3] console: add kbd_put_keysym_console

2014-05-22 Thread Gerd Hoffmann
So you can send keysyms to a specific (text terminal) console. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- include/ui/console.h | 1 + ui/console.c | 9 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/ui/console.h b/include/ui/console.h index

Re: [Qemu-devel] [PATCH v2] spapr: Enable dynamic change of the supported hypercalls list

2014-05-22 Thread Alexander Graf
On 22.05.14 13:01, Alexey Kardashevskiy wrote: On 05/22/2014 08:47 PM, Alexander Graf wrote: On 21.05.14 17:21, Alexey Kardashevskiy wrote: At the moment the ibm,hypertas-functions list is fixed. However some calls should be listed there if they are supported by QEMU or the host kernel. This

Re: [Qemu-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-22 Thread Gonglei (Arei)
-Original Message- From: qemu-devel-bounces+arei.gonglei=huawei@nongnu.org [mailto:qemu-devel-bounces+arei.gonglei=huawei@nongnu.org] On Behalf Of Chen, Tiejun Sent: Thursday, May 22, 2014 6:50 PM To: Gerd Hoffmann Cc: peter.mayd...@linaro.org;

Re: [Qemu-devel] [PATCH 1/2] vmstate: Add helper to enable GHashTable migration

2014-05-22 Thread Alexey Kardashevskiy
On 05/22/2014 08:57 PM, Alexander Graf wrote: On 22.05.14 12:53, Alexey Kardashevskiy wrote: This adds a VMSTATE_HASH_V macro. This implements put/get callbacks for it. This implements a qemu_hash_init() wrapper to save key/value sizes. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru

Re: [Qemu-devel] [PATCH 4/7] virtio-blk: use aliases instead of duplicate qdev properties

2014-05-22 Thread Paolo Bonzini
Il 22/05/2014 12:17, Stefan Hajnoczi ha scritto: I took a quick look at net, rng, and serial. This approach should work because the VirtIODevice qdev properties need to be exposed wholesale on the transport device. If that's what you're hinting at, I'll try it in v2. Yes, exactly. scsi too.

Re: [Qemu-devel] [PATCH 1/7] qom: add object_property_add_alias()

2014-05-22 Thread Paolo Bonzini
Il 22/05/2014 12:23, Stefan Hajnoczi ha scritto: I had an intermediate version of this patch with a flag so you could tell object_property_add_alias() whether or not to ref the target object. But in the end it seems like overengineering since the refcount case is rare or non-existent. The

[Qemu-devel] [PATCH V6 0/8] PSCI v0.2 support for KVM ARM/ARM64

2014-05-22 Thread Pranavkumar Sawargaonkar
This patchset adds the QEMU side changes for providing PSCI v0.2 to VM. ChangeLog: V6: - Add psci_version field in ARMCPU struct. - Misc cleanups suggested on RFC V5 of this patch. ( http://www.spinics.net/lists/kvm-arm/msg09400.html) - Dropping RFC prefix from patch. V5: - Updated

[Qemu-devel] [PATCH V6 2/8] linux-headers: Update KVM headers from linux-next tag next-20140508

2014-05-22 Thread Pranavkumar Sawargaonkar
Syncup KVM related linux headers from linux-next tree using scripts/update-linux-headers.sh. Signed-off-by: Pranavkumar Sawargaonkar pranavku...@linaro.org Signed-off-by: Anup Patel anup.pa...@linaro.org --- linux-headers/asm-arm/kvm.h | 10 +++-- linux-headers/asm-arm64/kvm.h | 10 +++--

[Qemu-devel] [PATCH V6 3/8] kvm: Handle exit reason KVM_EXIT_SYSTEM_EVENT

2014-05-22 Thread Pranavkumar Sawargaonkar
In-kernel PSCI v0.2 emulation of KVM ARM/ARM64 forwards SYSTEM_OFF and SYSTEM_RESET function calls to QEMU using KVM_EXIT_SYSTEM_EVENT exit reason. This patch updates kvm_cpu_exec() to handle KVM_SYSTEM_EVENT_SHUTDOWN and KVM_SYSTEM_EVENT_RESET system-level events from QEMU-side. Signed-off-by:

[Qemu-devel] [PATCH V6 1/8] update-linux-headers.sh: Add psci.h to linux header sync-up script

2014-05-22 Thread Pranavkumar Sawargaonkar
We will be using linux/psci.h for KVM ARM/ARM64 hence add it to linux header sync-up script. Signed-off-by: Pranavkumar Sawargaonkar pranavku...@linaro.org Signed-off-by: Anup Patel anup.pa...@linaro.org --- scripts/update-linux-headers.sh |3 ++- 1 file changed, 2 insertions(+), 1

[Qemu-devel] [PATCH V6 4/8] target-arm: Common kvm_arm_vcpu_init() for KVM ARM and KVM ARM64

2014-05-22 Thread Pranavkumar Sawargaonkar
Introduce a common kvm_arm_vcpu_init() for doing KVM_ARM_VCPU_INIT ioctl in KVM ARM and KVM ARM64. This also helps us factor-out few common code lines from kvm_arch_init_vcpu() for KVM ARM/ARM64. Signed-off-by: Pranavkumar Sawargaonkar pranavku...@linaro.org Signed-off-by: Anup Patel

[Qemu-devel] [PATCH v2 7/9] spapr_iommu: Get rid of window_size in sPAPRTCETable

2014-05-22 Thread Alexey Kardashevskiy
This removes window_size as it is basically a copy of nb_table shifted by SPAPR_TCE_PAGE_SHIFT. As new dynamic DMA windows are going to support windows as big as the entire RAM and this number will be bigger that 32 capacity, we will have to do something about @window_size anyway and removal seems

[Qemu-devel] [PATCH V6 7/8] target-arm: Introduce per-CPU field for PSCI version

2014-05-22 Thread Pranavkumar Sawargaonkar
We require to know the PSCI version available to given CPU at potentially many places. Currently, we need to know PSCI version when generating DTB for virt machine. This patch introduce per-CPU 32bit field representing the PSCI version available to the CPU. The encoding of this 32bit field is

[Qemu-devel] [PATCH V6 5/8] target-arm: Enable KVM_ARM_VCPU_PSCI_0_2 feature when possible

2014-05-22 Thread Pranavkumar Sawargaonkar
Latest linux kernel supports in-kernel emulation of PSCI v0.2 but to enable it we need to select KVM_ARM_VCPU_PSCI_0_2 feature using KVM_ARM_VCPU_INIT ioctl. Also, we can use KVM_ARM_VCPU_PSCI_0_2 feature for VCPU only when linux kernel has KVM_CAP_ARM_PSCI_0_2 capability. This patch updates

[Qemu-devel] [PATCH V6 6/8] target-arm: Implement kvm_arch_reset_vcpu() for KVM ARM64

2014-05-22 Thread Pranavkumar Sawargaonkar
To implement kvm_arch_reset_vcpu(), we simply re-init the VCPU using kvm_arm_vcpu_init() so that all registers of VCPU are set to their reset values by in-kernel KVM code. Signed-off-by: Pranavkumar Sawargaonkar pranavku...@linaro.org Signed-off-by: Anup Patel anup.pa...@linaro.org Reviewed-by:

[Qemu-devel] [PATCH v2 0/9] spapr_pci: Prepare for VFIO

2014-05-22 Thread Alexey Kardashevskiy
This patchset prepares QEMU for VFIO support on SPAPR. It also does preparations for Dynamic DMA window feature which allows to create DMA windows with 16MB IOMMU pages which will allow to map the entire guest RAM for DMA at almost no cost. Changelogs are in the patches. Alexey Kardashevskiy

[Qemu-devel] [PATCH v2 4/9] spapr_pci: spapr_iommu: Make DMA window a subregion

2014-05-22 Thread Alexey Kardashevskiy
Currently the default DMA window is represented by a single MemoryRegion. However there can be more than just one window so we need a root memory region to be separated from the actual DMA window(s). This introduces a root IOMMU memory region and adds a subregion for the default DMA 32bit window.

[Qemu-devel] [PATCH V6 8/8] hw/arm/virt: Use PSCI v0.2 compatible string when KVM or TCG provides it

2014-05-22 Thread Pranavkumar Sawargaonkar
If we have PSCI v0.2 emulation available for KVM ARM/ARM64 or TCG then we need to provide PSCI v0.2 compatible string via generated DTB. Signed-off-by: Pranavkumar Sawargaonkar pranavku...@linaro.org Signed-off-by: Anup Patel anup.pa...@linaro.org --- hw/arm/virt.c | 16 +++- 1

[Qemu-devel] [PATCH v2 8/9] spapr_iommu: Introduce page_shift in sPAPRTCETable

2014-05-22 Thread Alexey Kardashevskiy
At the moment only 4K pages are supported by sPAPRTCETable. Since sPAPR spec allows other page sizes and we are going to implement them, we need page size to be configrable. This adds @page_shift into sPAPRTCETable and replaces SPAPR_TCE_PAGE_SHIFT with it whereever it is possible. This removes

[Qemu-devel] [PATCH 2/3] console: rework text terminal cursor logic

2014-05-22 Thread Gerd Hoffmann
Have a global timer. Update all visible terminal windows syncronously. Right now this can be the active_console only, but that will change soon. The global timer will disable itself if not needed, so we only have to care start it if needed. Which might be at console switch time or when a new

Re: [Qemu-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-22 Thread Gerd Hoffmann
Hi, After applied your patch, 'xen-platform' is always disabled by default, right? Only in case -nodefaults is passed on the qemu command line (don't know whenever libxl does that). gfx_passthru=1 pci=[00:02.0@2, 00:1a.0] xen_platform_pci=0 ^^ That line isn't needed ...

[Qemu-devel] [PATCH v2 3/9] spapr_pci: Introduce a finish_realize() callback

2014-05-22 Thread Alexey Kardashevskiy
The spapr-pci PHB initializes IOMMU for emulated devices only. The upcoming VFIO support will do it different. However both emulated and VFIO PHB types share most of the initialization code. For the type specific things a new finish_realize() callback is introduced. This introduces sPAPRPHBClass

[Qemu-devel] [PATCH v2 9/9] spapr_iommu: Introduce bus_offset in sPAPRTCETable

2014-05-22 Thread Alexey Kardashevskiy
This adds @bus_offset into sPAPRTCETable to tell where TCE table starts from. It is set to 0 for emulated devices. Dynamic DMA windows will use other offset. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- hw/ppc/spapr_iommu.c | 13 + hw/ppc/spapr_pci.c | 5 +++--

[Qemu-devel] [PATCH v2 6/9] spapr_iommu: Convert old qdev_init_nofail() to object_property_set_bool

2014-05-22 Thread Alexey Kardashevskiy
qdev_init_nofail() was replaced by object_property_set_bool(realized) all over the QEMU so do we. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- hw/ppc/spapr_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/spapr_iommu.c b/hw/ppc/spapr_iommu.c index

[Qemu-devel] [PATCH v2 2/9] spapr_iommu: Enable multiple TCE requests

2014-05-22 Thread Alexey Kardashevskiy
Currently only single TCE entry per request is supported (H_PUT_TCE). However PAPR+ specification allows multiple entry requests such as H_PUT_TCE_INDIRECT and H_STUFF_TCE. Having less transitions to the host kernel via ioctls, support of these calls can accelerate IOMMU operations. This

[Qemu-devel] [PATCH v2 5/9] spapr_pci: Allow multiple TCE tables per PHB

2014-05-22 Thread Alexey Kardashevskiy
At the moment sPAPRPHBState contains a @tcet pointer to the only TCE table. However sPAPR spec allows having more than one DMA window. Since the TCE object is already a child of SPAPR PHB object, there is no need to keep an additional pointer to it in sPAPRPHBState so remove it. This changes the

[Qemu-devel] [PATCH v2 1/9] spapr: Enable dynamic change of the supported hypercalls list

2014-05-22 Thread Alexey Kardashevskiy
At the moment the ibm,hypertas-functions list is fixed. However some calls should be listed there if they are supported by QEMU or the host kernel. This enables hyperrtas_prop to grow on stack by adding a SPAPR_HYPERRTAS_ADD macro. qemu,hypertas-functions is converted as well. The first user of

Re: [Qemu-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-22 Thread Michael S. Tsirkin
On Thu, May 22, 2014 at 10:50:10AM +, Chen, Tiejun wrote: -Original Message- From: Gerd Hoffmann [mailto:kra...@redhat.com] Sent: Thursday, May 22, 2014 2:45 PM To: Chen, Tiejun Cc: Anthony PERARD; Daniel P. Berrange; peter.mayd...@linaro.org; xen-de...@lists.xensource.com;

  1   2   3   >