Re: [Qemu-devel] [PATCH 00/30] Introduction of IOMMUs into the memory API

2013-05-21 Thread Alexey Kardashevskiy
On 05/21/2013 08:57 PM, Paolo Bonzini wrote: This is part 1 of the memory API updates for 1.6. (Part 2 is the introduction of get/set_owner, part 3 is the introduction of the RCU-style flatview). Compared to the first submissions, there are a few extra cleanup patches, and

Re: [Qemu-devel] [PATCH 00/30] Introduction of IOMMUs into the memory API

2013-05-24 Thread Alexey Kardashevskiy
On 05/24/2013 03:08 AM, Paolo Bonzini wrote: Il 22/05/2013 11:24, Paolo Bonzini ha scritto: Il 22/05/2013 04:30, Alexey Kardashevskiy ha scritto: On 05/21/2013 08:57 PM, Paolo Bonzini wrote: This is part 1 of the memory API updates for 1.6. (Part 2 is the introduction of get/set_owner, part

[Qemu-devel] [PATCH] qemu: fix out of tree cross compile

2013-05-27 Thread Alexey Kardashevskiy
QEMU uses headers from source directory, however the asm symlink was created in the build directory what broke KVM stuff compilation. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- configure |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure

Re: [Qemu-devel] [PATCH 7/8] pseries: savevm support for PAPR virtual SCSI

2013-05-27 Thread Alexey Kardashevskiy
On 05/06/2013 05:37 PM, Paolo Bonzini wrote: Il 03/05/2013 03:38, David Gibson ha scritto: This patch adds the necessary support for saving the state of the PAPR VIO virtual SCSI device. This turns out to be trivial, because the generiC SCSI code already quiesces the attached virtual SCSI

Re: [Qemu-devel] [PATCH] qemu: fix out of tree cross compile

2013-05-27 Thread Alexey Kardashevskiy
On 05/27/2013 08:24 PM, Peter Maydell wrote: On 27 May 2013 07:13, Alexey Kardashevskiy a...@ozlabs.ru wrote: QEMU uses headers from source directory, however the asm symlink was created in the build directory what broke KVM stuff compilation. Signed-off-by: Alexey Kardashevskiy

[Qemu-devel] [PATCH] qemu: fix out of tree cross compile

2013-05-27 Thread Alexey Kardashevskiy
The symlink to platform linux headers is made in the build tree by the configure script but gcc is not told to look for them there. The patch fixes this. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- configure |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [Qemu-devel] [PATCH] qemu: fix out of tree cross compile

2013-05-27 Thread Alexey Kardashevskiy
On 05/28/2013 01:02 AM, Paolo Bonzini wrote: Il 27/05/2013 16:12, Alexey Kardashevskiy ha scritto: The symlink to platform linux headers is made in the build tree by the configure script but gcc is not told to look for them there. The patch fixes this. Signed-off-by: Alexey Kardashevskiy

[Qemu-devel] [PATCH v2] qemu: fix out of tree cross compile

2013-05-27 Thread Alexey Kardashevskiy
The symlink to asm platform linux headers is made in the build tree by the configure script but gcc is not told to look for them there. The patch fixes this. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- configure |1 + 1 file changed, 1 insertion(+) diff --git a/configure b

[Qemu-devel] [PATCH v3] qemu: fix out of tree cross compile

2013-05-27 Thread Alexey Kardashevskiy
The symlink to asm platform linux headers is made in the build tree by the configure script but gcc is not told to look for them there. The patch fixes this. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- The previous patch did not remove the old line adding includes. Early morning

[Qemu-devel] [PATCH v3] qemu: fix out of tree cross compile

2013-05-29 Thread Alexey Kardashevskiy
The symlink to asm platform linux headers is made in the build tree by the configure script but gcc is not told to look for them there. The patch fixes this. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- Reposting it as a top level patch. --- configure |2 +- 1 file changed, 1

[Qemu-devel] broken incoming migration

2013-05-30 Thread Alexey Kardashevskiy
Hi! I found the migration broken on pseries platform, specifically, this patch broke it: f1c72795af573b24a7da5eb52375c9aba8a37972 migration: do not sent zero pages in bulk stage The idea is not to send zero pages to the destination guest which is expected to have 100% empty RAM. However on

Re: [Qemu-devel] broken incoming migration

2013-05-30 Thread Alexey Kardashevskiy
Forgot some cc:. On 05/30/2013 05:44 PM, Alexey Kardashevskiy wrote: Hi! I found the migration broken on pseries platform, specifically, this patch broke it: f1c72795af573b24a7da5eb52375c9aba8a37972 migration: do not sent zero pages in bulk stage The idea is not to send zero pages

Re: [Qemu-devel] broken incoming migration

2013-05-30 Thread Alexey Kardashevskiy
On 05/30/2013 05:49 PM, Paolo Bonzini wrote: Il 30/05/2013 09:44, Alexey Kardashevskiy ha scritto: Hi! I found the migration broken on pseries platform, specifically, this patch broke it: f1c72795af573b24a7da5eb52375c9aba8a37972 migration: do not sent zero pages in bulk stage The idea

[Qemu-devel] [PATCH] target-ppc kvm: missing kvm_arch_init_irq_routing

2013-05-30 Thread Alexey Kardashevskiy
This adds an empty stub to make the compiler happy. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- target-ppc/kvm.c |4 1 file changed, 4 insertions(+) diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 3ab2946..2bbc3b8 100644 --- a/target-ppc/kvm.c +++ b/target-ppc/kvm.c

[Qemu-devel] [PATCH] target-ppc kvm: save cr register

2013-05-30 Thread Alexey Kardashevskiy
This adds a missing code to save CR (condition register) via kvm_arch_put_registers(). kvm_arch_get_registers() already has it. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- target-ppc/kvm.c |5 + 1 file changed, 5 insertions(+) diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c

Re: [Qemu-devel] broken incoming migration

2013-05-30 Thread Alexey Kardashevskiy
On 05/30/2013 07:08 PM, Peter Lieven wrote: Am 30.05.2013 10:18, schrieb Alexey Kardashevskiy: On 05/30/2013 05:49 PM, Paolo Bonzini wrote: Il 30/05/2013 09:44, Alexey Kardashevskiy ha scritto: Hi! I found the migration broken on pseries platform, specifically, this patch broke

Re: [Qemu-devel] broken incoming migration

2013-05-30 Thread Alexey Kardashevskiy
On 05/30/2013 11:00 PM, Paolo Bonzini wrote: Il 30/05/2013 11:08, Peter Lieven ha scritto: Am 30.05.2013 10:18, schrieb Alexey Kardashevskiy: On 05/30/2013 05:49 PM, Paolo Bonzini wrote: Il 30/05/2013 09:44, Alexey Kardashevskiy ha scritto: Hi! I found the migration broken on pseries

Re: [Qemu-devel] [PATCH] target-ppc kvm: missing kvm_arch_init_irq_routing

2013-05-30 Thread Alexey Kardashevskiy
On 05/31/2013 01:58 AM, Scott Wood wrote: On 05/30/2013 04:25:33 AM, Alexey Kardashevskiy wrote: This adds an empty stub to make the compiler happy. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- target-ppc/kvm.c |4 1 file changed, 4 insertions(+) diff --git a/target

Re: [Qemu-devel] [PATCH 7/8] pseries: savevm support for PAPR virtual SCSI

2013-05-31 Thread Alexey Kardashevskiy
On 05/27/2013 05:03 PM, Paolo Bonzini wrote: Il 27/05/2013 08:48, Alexey Kardashevskiy ha scritto: This is only true when the rerror and werror options have the values ignore or report. See virtio-scsi for an example of how to save the requests using the save_request and load_request

Re: [Qemu-devel] [PATCH 10/21] memory: make section size a 128-bit integer

2013-05-31 Thread Alexey Kardashevskiy
On 05/31/2013 07:16 AM, Paolo Bonzini wrote: So far, the size of all regions passed to listeners could fit in 64 bits, because artificial regions (containers and aliases) are eliminated by the memory core, leaving only device regions which have reasonable sizes An IOMMU however cannot be

Re: [Qemu-devel] [PATCH 7/8] pseries: savevm support for PAPR virtual SCSI

2013-05-31 Thread Alexey Kardashevskiy
On 05/31/2013 06:18 PM, Paolo Bonzini wrote: Il 31/05/2013 07:58, Alexey Kardashevskiy ha scritto: On 05/27/2013 05:03 PM, Paolo Bonzini wrote: Il 27/05/2013 08:48, Alexey Kardashevskiy ha scritto: This is only true when the rerror and werror options have the values ignore or report. See

Re: [Qemu-devel] [PATCH 7/8] pseries: savevm support for PAPR virtual SCSI

2013-05-31 Thread Alexey Kardashevskiy
On 05/31/2013 08:07 PM, Benjamin Herrenschmidt wrote: On Fri, 2013-05-31 at 15:58 +1000, Alexey Kardashevskiy wrote: And another question (sorry I am not very familiar with terminology but cc:Ben is :) ) - what happens with indirect requests if migration happened in the middle of handling

Re: [Qemu-devel] [PATCH 7/8] pseries: savevm support for PAPR virtual SCSI

2013-05-31 Thread Alexey Kardashevskiy
On 05/31/2013 08:26 PM, Paolo Bonzini wrote: Il 31/05/2013 12:12, Alexey Kardashevskiy ha scritto: On 05/31/2013 06:18 PM, Paolo Bonzini wrote: Il 31/05/2013 07:58, Alexey Kardashevskiy ha scritto: On 05/27/2013 05:03 PM, Paolo Bonzini wrote: Il 27/05/2013 08:48, Alexey Kardashevskiy ha

Re: [Qemu-devel] [PATCH 7/8] pseries: savevm support for PAPR virtual SCSI

2013-06-03 Thread Alexey Kardashevskiy
On 05/31/2013 08:41 PM, Paolo Bonzini wrote: Il 31/05/2013 12:25, Alexey Kardashevskiy ha scritto: On 05/31/2013 08:07 PM, Benjamin Herrenschmidt wrote: On Fri, 2013-05-31 at 15:58 +1000, Alexey Kardashevskiy wrote: And another question (sorry I am not very familiar with terminology

Re: [Qemu-devel] [PATCH 7/8] pseries: savevm support for PAPR virtual SCSI

2013-06-03 Thread Alexey Kardashevskiy
On 06/03/2013 06:07 PM, Benjamin Herrenschmidt wrote: On Mon, 2013-06-03 at 15:46 +1000, Alexey Kardashevskiy wrote: Ok. I implemented {save|load}_request for IBMVSCSI, started testing - the destination system behaves very unstable, sometime it is a fault in _raw_spin_lock or it looks okay

Re: [Qemu-devel] broken incoming migration

2013-06-03 Thread Alexey Kardashevskiy
On 05/31/2013 12:38 AM, Peter Lieven wrote: Am 30.05.2013 um 15:41 schrieb Paolo Bonzini pbonz...@redhat.com: Il 30/05/2013 11:08, Peter Lieven ha scritto: Am 30.05.2013 10:18, schrieb Alexey Kardashevskiy: On 05/30/2013 05:49 PM, Paolo Bonzini wrote: Il 30/05/2013 09:44, Alexey

[Qemu-devel] [PATCH 01/13] target-ppc kvm: save cr register

2013-06-04 Thread Alexey Kardashevskiy
This adds a missing code to save CR (condition register) via kvm_arch_put_registers(). kvm_arch_get_registers() already has it. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- target-ppc/kvm.c |5 + 1 file changed, 5 insertions(+) diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c

[Qemu-devel] [PATCH 00/13 v2] pseries: savevm / migration support

2013-06-04 Thread Alexey Kardashevskiy
driver rework which is not entirely related to live migration but does not make much sense alone. Alexey Kardashevskiy (5): target-ppc kvm: save cr register target-ppc: Convert ppc cpu savevm to VMStateDescription pseries: rework PAPR virtual SCSI pseries: savevm support for PAPR virtual SCSI

[Qemu-devel] [PATCH 04/13] pseries: savevm support for XICS interrupt controller

2013-06-04 Thread Alexey Kardashevskiy
-by: David Gibson da...@gibson.dropbear.id.au Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- hw/ppc/xics.c | 70 + 1 file changed, 66 insertions(+), 4 deletions(-) diff --git a/hw/ppc/xics.c b/hw/ppc/xics.c index 1b25075..8a17175

[Qemu-devel] [PATCH 02/13] savevm: Implement VMS_DIVIDE flag

2013-06-04 Thread Alexey Kardashevskiy
storing the total address space described by the structures could use this construct. Signed-off-by: David Gibson da...@gibson.dropbear.id.au Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- include/migration/vmstate.h | 13 + savevm.c|8 2 files

[Qemu-devel] [PATCH 12/13] target-ppc: Add helper for KVM_PPC_RTAS_DEFINE_TOKEN

2013-06-04 Thread Alexey Kardashevskiy
to tell the kernel which RTAS function name is assigned to a given token value. This patch adds a convenience wrapper for the KVM_PPC_RTAS_DEFINE_TOKEN ioctl() which is used for this purpose. Signed-off-by: David Gibson da...@gibson.dropbear.id.au Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru

[Qemu-devel] [PATCH 05/13] pseries: savevm support for VIO devices

2013-06-04 Thread Alexey Kardashevskiy
From: David Gibson da...@gibson.dropbear.id.au This patch adds helpers to allow PAPR VIO devices to save state common to all VIO devices during savevm. Signed-off-by: David Gibson da...@gibson.dropbear.id.au Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- hw/ppc/spapr_vio.c

[Qemu-devel] [PATCH 07/13] pseries: savevm support for PAPR TCE tables

2013-06-04 Thread Alexey Kardashevskiy
From: David Gibson da...@gibson.dropbear.id.au This patch adds the necessary VMStateDescription information to save the state of PAPR TCE tables (that is, the PAPR specified IOMMU). Signed-off-by: David Gibson da...@gibson.dropbear.id.au Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- hw

[Qemu-devel] [PATCH 08/13] pseries: rework PAPR virtual SCSI

2013-06-04 Thread Alexey Kardashevskiy
'] Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Cc: David Gibson da...@gibson.dropbear.id.au --- hw/scsi/spapr_vscsi.c | 224 + 1 file changed, 131 insertions(+), 93 deletions(-) diff --git a/hw/scsi/spapr_vscsi.c b/hw/scsi/spapr_vscsi.c index

[Qemu-devel] [PATCH 09/13] pseries: savevm support for PAPR virtual SCSI

2013-06-04 Thread Alexey Kardashevskiy
Author: David Gibson da...@gibson.dropbear.id.au This patch adds the necessary support for saving the state of the PAPR VIO virtual SCSI device. This also saves and restores active SCSI requests. [David Gibson: implemented vscsi device vmsd] Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Cc

[Qemu-devel] [PATCH 11/13] pseries: savevm support for PCI host bridge

2013-06-04 Thread Alexey Kardashevskiy
Author: David Gibson da...@gibson.dropbear.id.au This adds the necessary support for saving the state of the PAPR virtual PCI host bridge (or host bridges). Signed-off-by: David Gibson da...@gibson.dropbear.id.au Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- hw/ppc/spapr_pci.c

[Qemu-devel] [PATCH 13/13] pseries: savevm support with KVM

2013-06-04 Thread Alexey Kardashevskiy
kernel interfaces to extract and reinsert the guest's hash table during the migration process. Signed-off-by: David Gibson da...@gibson.dropbear.id.au Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- hw/ppc/spapr.c | 108 +--- include/hw/ppc

[Qemu-devel] [PATCH 10/13] pseries: savevm support for pseries machine

2013-06-04 Thread Alexey Kardashevskiy
. In addition it adds VMStateDescription information to save and restore the (few) remaining pieces of state information needed by the pseries machine. Signed-off-by: David Gibson da...@gibson.dropbear.id.au Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- hw/ppc/spapr.c | 269

[Qemu-devel] [PATCH 06/13] pseries: savevm support for PAPR VIO logical lan

2013-06-04 Thread Alexey Kardashevskiy
From: David Gibson da...@gibson.dropbear.id.au This patch adds the necessary VMStateDescription information to support savevm/loadvm for the spapr_llan (PAPR logical lan) device. Signed-off-by: David Gibson da...@gibson.dropbear.id.au Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- hw

[Qemu-devel] [PATCH 03/13] target-ppc: Convert ppc cpu savevm to VMStateDescription

2013-06-04 Thread Alexey Kardashevskiy
-by: David Gibson da...@gibson.dropbear.id.au Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- target-ppc/cpu-qom.h|4 + target-ppc/cpu.h|8 +- target-ppc/machine.c| 539 --- target-ppc/translate_init.c |2 + 4 files

Re: [Qemu-devel] [PATCH 00/13 v2] pseries: savevm / migration support

2013-06-04 Thread Alexey Kardashevskiy
On 06/04/2013 10:42 PM, Andreas Färber wrote: Am 04.06.2013 14:20, schrieb Alexey Kardashevskiy: I still have to learn how to force git not to overwrite the original commit author :-/ Is there any way to tell the original creator in the commit message so it could live in a git forever

Re: [Qemu-devel] [PATCH] target-ppc kvm: save cr register

2013-06-04 Thread Alexey Kardashevskiy
On 06/04/2013 10:11 PM, David Gibson wrote: On Thu, May 30, 2013 at 07:26:10PM +1000, Alexey Kardashevskiy wrote: This adds a missing code to save CR (condition register) via kvm_arch_put_registers(). kvm_arch_get_registers() already has it. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru

Re: [Qemu-devel] [PATCH 04/13] pseries: savevm support for XICS interrupt controller

2013-06-04 Thread Alexey Kardashevskiy
On 06/04/2013 10:20 PM, Alexey Kardashevskiy wrote: From: David Gibson da...@gibson.dropbear.id.au From: David Gibson da...@gibson.dropbear.id.au This patch adds the necessary VMStateDescription information to support savevm/loadvm for the XICS interrupt controller used on the pseries

Re: [Qemu-devel] broken incoming migration

2013-06-04 Thread Alexey Kardashevskiy
-migration These two? 848b796 Tue Jun 4 14:43:04 2013 +0200 Peter Lieven migration: do not overwrite zero pages 2206ac8 Tue Jun 4 14:25:33 2013 +0200 Peter Lieven Revert migration: do not sent zero pages in bulk stage That works for me (qemu 1.5, kernel 3.9-rc2). Tested-by: Alexey Kardashevskiy

[Qemu-devel] [PATCH] pseries: Support for in-kernel XICS interrupt controller

2013-06-05 Thread Alexey Kardashevskiy
mistype which caused ics_set_kvm_state() to fail] Signed-off-by: David Gibson da...@gibson.dropbear.id.au Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- This depends on the pseries: savevm support for XICS interrupt controller patch posted earlier. --- hw/ppc/spapr.c|4 +- hw

Re: [Qemu-devel] [PATCH 00/13 v2] pseries: savevm / migration support

2013-06-05 Thread Alexey Kardashevskiy
On 06/05/2013 11:59 AM, Alexey Kardashevskiy wrote: On 06/04/2013 10:42 PM, Andreas Färber wrote: Am 04.06.2013 14:20, schrieb Alexey Kardashevskiy: I still have to learn how to force git not to overwrite the original commit author :-/ Is there any way to tell the original creator

Re: [Qemu-devel] [PATCH] target-ppc kvm: save cr register

2013-06-05 Thread Alexey Kardashevskiy
. btw what is going on with this patch? I have the PCI stuff too, but that's no PCI related so I was going to post those separately, rather than as a PPC pull request. I guess I still want this stuff for VFIO, some bits. -- With best regards Alexey Kardashevskiy -- icq: 52150396

Re: [Qemu-devel] [PATCH 11/13] pseries: savevm support for PCI host bridge

2013-06-05 Thread Alexey Kardashevskiy
On 05.06.2013 20:00, David Gibson wrote: On Tue, Jun 04, 2013 at 10:21:03PM +1000, Alexey Kardashevskiy wrote: Author: David Gibson da...@gibson.dropbear.id.au This adds the necessary support for saving the state of the PAPR virtual PCI host bridge (or host bridges). I think the PCI

Re: [Qemu-devel] [PATCH 12/13] target-ppc: Add helper for KVM_PPC_RTAS_DEFINE_TOKEN

2013-06-05 Thread Alexey Kardashevskiy
On 05.06.2013 20:02, David Gibson wrote: On Tue, Jun 04, 2013 at 10:21:04PM +1000, Alexey Kardashevskiy wrote: From: David Gibson da...@gibson.dropbear.id.au Recent PowerKVM allows the kernel to intercept some RTAS calls from the guest directly. This is used to implement the more efficient

Re: [Qemu-devel] [PATCH 04/13] pseries: savevm support for XICS interrupt controller

2013-06-05 Thread Alexey Kardashevskiy
On 05.06.2013 19:55, David Gibson wrote: On Wed, Jun 05, 2013 at 01:22:02PM +1000, Alexey Kardashevskiy wrote: On 06/04/2013 10:20 PM, Alexey Kardashevskiy wrote: [snip] +static int ics_post_load(void *opaque, int version_id) +{ +int i; +struct ics_state *ics = opaque

[Qemu-devel] [PATCH 2/2] KVM: PPC: Add dummy kvm_arch_init_irq_routing()

2013-06-05 Thread Alexey Kardashevskiy
-off-by: Scott Wood scottw...@freescale.com Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- target-ppc/kvm.c |4 1 file changed, 4 insertions(+) diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 3ab2946..2bbc3b8 100644 --- a/target-ppc/kvm.c +++ b/target-ppc/kvm.c @@ -1797,3

[Qemu-devel] [PATCH 1/2] linux-headers: Update to v3.10-rc4

2013-06-05 Thread Alexey Kardashevskiy
This adds symbols required for sPAPR live migration and in-kernel XICS interrupt controller. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- linux-headers/asm-arm/kvm.h | 12 ++--- linux-headers/asm-mips/kvm.h | 55 +++ linux-headers/asm-mips/kvm_para.h

[Qemu-devel] [PATCH 0/2] header update request

2013-06-05 Thread Alexey Kardashevskiy
We need new headers for live migration and in-kernel interrupt controller support. However just copying new headers breaks PPC so dummy kvm_arch_init_irq_routing() is required as well. Alexey Kardashevskiy (1): linux-headers: Update to v3.10-rc4 Scott Wood (1): KVM: PPC: Add dummy

Re: [Qemu-devel] [PATCH] pseries: Support for in-kernel XICS interrupt controller

2013-06-06 Thread Alexey Kardashevskiy
On 06/06/2013 05:41 PM, David Gibson wrote: On Wed, Jun 05, 2013 at 05:39:58PM +1000, Alexey Kardashevskiy wrote: From: David Gibson da...@gibson.dropbear.id.au Recent (host) kernels support emulating the PAPR defined XICS interrupt controller system within KVM. This patch allows qemu

Re: [Qemu-devel] [PATCH 10/21] memory: make section size a 128-bit integer

2013-06-06 Thread Alexey Kardashevskiy
On 05/31/2013 07:16 AM, Paolo Bonzini wrote: So far, the size of all regions passed to listeners could fit in 64 bits, because artificial regions (containers and aliases) are eliminated by the memory core, leaving only device regions which have reasonable sizes An IOMMU however cannot be

[Qemu-devel] [QEMU question] Disk hot plugging without working PCI hotplug - possible?

2013-06-06 Thread Alexey Kardashevskiy
Hi! For the pseries platform (server PPC64) we do not support PCI hotplug yet. However we still want to hot plug disks. As a workaround, we could add multiple SCSI host devices (virtio-scsi-pci, spapr-vscsi) without any disk attached and later (using qemu console) attach drives to them as we do

Re: [Qemu-devel] [QEMU question] Disk hot plugging without working PCI hotplug - possible?

2013-06-06 Thread Alexey Kardashevskiy
On 06.06.2013 22:44, Frederic Konrad wrote: On 06/06/2013 12:13, Alexey Kardashevskiy wrote: Hi! For the pseries platform (server PPC64) we do not support PCI hotplug yet. However we still want to hot plug disks. As a workaround, we could add multiple SCSI host devices (virtio-scsi-pci

Re: [Qemu-devel] [QEMU question] Disk hot plugging without working PCI hotplug - possible?

2013-06-06 Thread Alexey Kardashevskiy
On 07.06.2013 0:29, Frederic Konrad wrote: On 06/06/2013 15:59, Alexey Kardashevskiy wrote: On 06.06.2013 22:44, Frederic Konrad wrote: On 06/06/2013 12:13, Alexey Kardashevskiy wrote: Hi! For the pseries platform (server PPC64) we do not support PCI hotplug yet. However we still want

Re: [Qemu-devel] [PATCH 10/21] memory: make section size a 128-bit integer

2013-06-06 Thread Alexey Kardashevskiy
On 06/07/2013 11:09 AM, Paolo Bonzini wrote: Il 06/06/2013 04:36, Alexey Kardashevskiy ha scritto: diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 693a9ff..c89676b 100644 --- a/hw/misc/vfio.c +++ b/hw/misc/vfio.c @@ -1953,7 +1953,7 @@ static void vfio_listener_region_add(MemoryListener

Re: [Qemu-devel] [QEMU question] Disk hot plugging without working PCI hotplug - possible?

2013-06-06 Thread Alexey Kardashevskiy
On 06/07/2013 12:29 AM, Frederic Konrad wrote: On 06/06/2013 15:59, Alexey Kardashevskiy wrote: On 06.06.2013 22:44, Frederic Konrad wrote: On 06/06/2013 12:13, Alexey Kardashevskiy wrote: Hi! For the pseries platform (server PPC64) we do not support PCI hotplug yet. However we still want

Re: [Qemu-devel] broken incoming migration

2013-06-08 Thread Alexey Kardashevskiy
On 06/08/2013 06:27 PM, Wenchao Xia wrote: On 04.06.2013 16:40, Paolo Bonzini wrote: Il 04/06/2013 16:38, Peter Lieven ha scritto: On 04.06.2013 16:14, Paolo Bonzini wrote: Il 04/06/2013 15:52, Peter Lieven ha scritto: On 30.05.2013 16:41, Paolo Bonzini wrote: Il 30/05/2013 16:38, Peter

Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/2] KVM: PPC: Add dummy kvm_arch_init_irq_routing()

2013-06-08 Thread Alexey Kardashevskiy
On 06/08/2013 05:24 PM, Michael Tokarev wrote: 06.06.2013 07:59, Alexey Kardashevskiy wrote: From: Scott Wood scottw...@freescale.com The common KVM code insists on calling kvm_arch_init_irq_routing() as soon as it sees kernel header support for it (regardless of whether QEMU supports

Re: [Qemu-devel] [PATCH] pseries: Support for in-kernel XICS interrupt controller

2013-06-08 Thread Alexey Kardashevskiy
On 06/08/2013 08:20 PM, Andreas Färber wrote: Am 05.06.2013 09:39, schrieb Alexey Kardashevskiy: From: David Gibson da...@gibson.dropbear.id.au Recent (host) kernels support emulating the PAPR defined XICS interrupt controller system within KVM. This patch allows qemu to initialize

Re: [Qemu-devel] broken incoming migration

2013-06-08 Thread Alexey Kardashevskiy
On 06/09/2013 12:16 PM, Wenchao Xia wrote: 于 2013-6-8 16:30, Alexey Kardashevskiy 写道: On 06/08/2013 06:27 PM, Wenchao Xia wrote: On 04.06.2013 16:40, Paolo Bonzini wrote: Il 04/06/2013 16:38, Peter Lieven ha scritto: On 04.06.2013 16:14, Paolo Bonzini wrote: Il 04/06/2013 15:52, Peter Lieven

Re: [Qemu-devel] [Qemu-ppc] broken incoming migration

2013-06-08 Thread Alexey Kardashevskiy
On 06/09/2013 12:52 PM, Benjamin Herrenschmidt wrote: On Sun, 2013-06-09 at 12:34 +1000, Alexey Kardashevskiy wrote: It is _live_ migration, the source sends changes, same pages can change and be sent several times. So we would need to turn tracking on on the destination to know if some page

Re: [Qemu-devel] broken incoming migration

2013-06-08 Thread Alexey Kardashevskiy
On 06/09/2013 01:01 PM, Wenchao Xia wrote: 于 2013-6-9 10:34, Alexey Kardashevskiy 写道: On 06/09/2013 12:16 PM, Wenchao Xia wrote: 于 2013-6-8 16:30, Alexey Kardashevskiy 写道: On 06/08/2013 06:27 PM, Wenchao Xia wrote: On 04.06.2013 16:40, Paolo Bonzini wrote: Il 04/06/2013 16:38, Peter Lieven

Re: [Qemu-devel] broken incoming migration

2013-06-10 Thread Alexey Kardashevskiy
On 06/09/2013 05:27 PM, Peter Lieven wrote: Am 09.06.2013 um 05:09 schrieb Alexey Kardashevskiy a...@ozlabs.ru: On 06/09/2013 01:01 PM, Wenchao Xia wrote: 于 2013-6-9 10:34, Alexey Kardashevskiy 写道: On 06/09/2013 12:16 PM, Wenchao Xia wrote: 于 2013-6-8 16:30, Alexey Kardashevskiy 写道

Re: [Qemu-devel] broken incoming migration

2013-06-10 Thread Alexey Kardashevskiy
On 06/10/2013 04:50 PM, Peter Lieven wrote: On 10.06.2013 08:39, Alexey Kardashevskiy wrote: On 06/09/2013 05:27 PM, Peter Lieven wrote: Am 09.06.2013 um 05:09 schrieb Alexey Kardashevskiy a...@ozlabs.ru: On 06/09/2013 01:01 PM, Wenchao Xia wrote: 于 2013-6-9 10:34, Alexey Kardashevskiy 写道

Re: [Qemu-devel] broken incoming migration

2013-06-10 Thread Alexey Kardashevskiy
On 06/10/2013 06:44 PM, Peter Lieven wrote: On 10.06.2013 08:55, Alexey Kardashevskiy wrote: On 06/10/2013 04:50 PM, Peter Lieven wrote: On 10.06.2013 08:39, Alexey Kardashevskiy wrote: On 06/09/2013 05:27 PM, Peter Lieven wrote: Am 09.06.2013 um 05:09 schrieb Alexey Kardashevskiy

Re: [Qemu-devel] [0/10] Clean up PCI code to allow for multiple root buses (v2)

2013-06-12 Thread Alexey Kardashevskiy
On 06/06/2013 08:01 PM, Michael S. Tsirkin wrote: On Thu, Jun 06, 2013 at 06:48:44PM +1000, David Gibson wrote: The current PCI subsystem has kind of half-hearted support for multiple independent root buses - aka PCI domains - in the form of the PCIHostBus structure and its domain field.

[Qemu-devel] [PATCH 2/4] KVM: S390: Add dummy kvm_arch_init_irq_routing()

2013-06-12 Thread Alexey Kardashevskiy
The common KVM code insists on calling kvm_arch_init_irq_routing() as soon as it sees kernel header support for it (regardless of whether QEMU supports it). Provide a dummy function to satisfy this. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- target-s390x/kvm.c |4 1 file

[Qemu-devel] [PATCH 3/4] KVM: PPC: Add dummy kvm_arch_init_irq_routing()

2013-06-12 Thread Alexey Kardashevskiy
-off-by: Scott Wood scottw...@freescale.com Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- target-ppc/kvm.c |4 1 file changed, 4 insertions(+) diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 3ab2946..2bbc3b8 100644 --- a/target-ppc/kvm.c +++ b/target-ppc/kvm.c @@ -1797,3

[Qemu-devel] [PATCH 0/4 v2] header update request

2013-06-12 Thread Alexey Kardashevskiy
the headers update; * now headers are from v3.10-rc5 (the previous try was for rc4). Alexey Kardashevskiy (3): KVM: ARM: Add dummy kvm_arch_init_irq_routing() KVM: S390: Add dummy kvm_arch_init_irq_routing() linux-headers: Update to v3.10-rc5 Scott Wood (1): KVM: PPC: Add dummy

[Qemu-devel] [PATCH 1/4] KVM: ARM: Add dummy kvm_arch_init_irq_routing()

2013-06-12 Thread Alexey Kardashevskiy
The common KVM code insists on calling kvm_arch_init_irq_routing() as soon as it sees kernel header support for it (regardless of whether QEMU supports it). Provide a dummy function to satisfy this. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- target-arm/kvm.c |4 1 file

[Qemu-devel] [PATCH 4/4] linux-headers: Update to v3.10-rc5

2013-06-12 Thread Alexey Kardashevskiy
This adds symbols required for PPC64 pseries platform features: 1. sPAPR live migration; 2. in-kernel XICS interrupt controller. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- linux-headers/asm-arm/kvm.h | 12 ++-- linux-headers/asm-mips/kvm.h | 138

Re: [Qemu-devel] [RESEND PATCH] virtio-scsi: forward scsibus for virtio-scsi-pci.

2013-06-12 Thread Alexey Kardashevskiy
scsi-hot-add to the virtio-scsi-device plugged on the virtio-bus. Cc: qemu-sta...@nongnu.org Reported-by: Alexey Kardashevskiy a...@ozlabs.ru Reviewed-by: Andreas Färber afaer...@suse.de Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Acked-by: Michael S. Tsirkin m...@redhat.com

Re: [Qemu-devel] [RESEND PATCH] virtio-scsi: forward scsibus for virtio-scsi-pci.

2013-06-12 Thread Alexey Kardashevskiy
On 06/12/2013 07:16 PM, Michael S. Tsirkin wrote: On Wed, Jun 12, 2013 at 07:04:48PM +1000, Alexey Kardashevskiy wrote: On 06/12/2013 07:03 PM, Michael S. Tsirkin wrote: On Wed, Jun 12, 2013 at 08:15:17AM +0200, fred.kon...@greensocs.com wrote: From: KONRAD Frederic fred.kon...@greensocs.com

Re: [Qemu-devel] [Qemu-trivial] [PATCH 0/4 v2] header update request

2013-06-12 Thread Alexey Kardashevskiy
On 06/12/2013 07:27 PM, Michael Tokarev wrote: 12.06.2013 11:26, Alexey Kardashevskiy wrote: We need new headers for live migration and in-kernel interrupt controller support. However just copying new headers breaks at least PPC so dummy kvm_arch_init_irq_routing() is required as well

Re: [Qemu-devel] [RESEND PATCH] virtio-scsi: forward scsibus for virtio-scsi-pci.

2013-06-12 Thread Alexey Kardashevskiy
On 06/12/2013 09:52 PM, Michael S. Tsirkin wrote: On Wed, Jun 12, 2013 at 09:21:41PM +1000, Alexey Kardashevskiy wrote: On 06/12/2013 07:16 PM, Michael S. Tsirkin wrote: On Wed, Jun 12, 2013 at 07:04:48PM +1000, Alexey Kardashevskiy wrote: On 06/12/2013 07:03 PM, Michael S. Tsirkin wrote

[Qemu-devel] [PATCH] spapr: add yet another maintainer

2013-06-12 Thread Alexey Kardashevskiy
Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- MAINTAINERS |1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 13c0cc5..1e00bb1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -430,6 +430,7 @@ F: hw/isa/pc87312.[hc] sPAPR M: David Gibson da

Re: [Qemu-devel] [PATCH qom-cpu 47/59] spapr: Abstract spapr_fix_cpu_dt() with qemu_for_each_cpu()

2013-06-12 Thread Alexey Kardashevskiy
On 06/11/2013 08:12 PM, Andreas Färber wrote: Am 11.06.2013 04:43, schrieb David Gibson: On Sun, Jun 09, 2013 at 09:13:14PM +0200, Andreas F¦rber wrote: Signed-off-by: Andreas F¦rber afaer...@suse.de These days, spapr patches should be CCed to Alexey, instead of me. Please update

Re: [Qemu-devel] [PATCH] spapr: add compat machine option

2013-09-30 Thread Alexey Kardashevskiy
On 30.09.2013 21:52, Paolo Bonzini wrote: Il 30/09/2013 13:25, Alexander Graf ha scritto: On 27.09.2013, at 10:06, Alexey Kardashevskiy wrote: To be able to boot on newer hardware that the software support, PowerISA defines a logical PVR, one per every PowerISA specification version from

Re: [Qemu-devel] [PATCH] spapr: add compat machine option

2013-09-30 Thread Alexey Kardashevskiy
On 30.09.2013 21:25, Alexander Graf wrote: On 27.09.2013, at 10:06, Alexey Kardashevskiy wrote: To be able to boot on newer hardware that the software support, PowerISA defines a logical PVR, one per every PowerISA specification version from 2.04. This adds the compat option which takes

Re: [Qemu-devel] [PATCH] turn firmware image filename into a machine option

2013-10-01 Thread Alexey Kardashevskiy
On 10/01/2013 11:46 PM, Andreas Färber wrote: Am 01.10.2013 15:41, schrieb Gerd Hoffmann: On Di, 2013-10-01 at 14:20 +0200, Andreas Färber wrote: Hi, Am 01.10.2013 14:16, schrieb Gerd Hoffmann: -bios we're stuck with because it's a legacy option, What is legacy about it? Well, the

Re: [Qemu-devel] [PATCH] turn firmware image filename into a machine option

2013-10-01 Thread Alexey Kardashevskiy
On 10/02/2013 07:23 AM, Benjamin Herrenschmidt wrote: On Wed, 2013-10-02 at 00:23 +1000, Alexey Kardashevskiy wrote: SLOF is what is loaded from the very beginning, it configures PCI, cooks the device tree and boots the guest system (directly or via yaboot/grub, from disk, network or ram

Re: [Qemu-devel] Using TRIM to shrink qcow2 images

2013-10-04 Thread Alexey Kardashevskiy
Hi Paolo! On Thu, Aug 8, 2013 at 10:00 PM, Paolo Bonzini pbonz...@redhat.com wrote: On 08/08/2013 12:34 PM, Ralf Ramsauer wrote: Hi, QCOW2 uses a similar idea like file holes (sparse files) on filesystems [1]. RAW Images also may use file holes. If qemu would support TRIM, then the

Re: [Qemu-devel] Using TRIM to shrink qcow2 images

2013-10-04 Thread Alexey Kardashevskiy
On 10/04/2013 05:05 PM, Paolo Bonzini wrote: Il 04/10/2013 08:22, Alexey Kardashevskiy ha scritto: btw I tried discard=on as you described (with if=virtio) and received an error: [root@localhost ~]# fstrim -v / fstrim: /: FITRIM ioctl failed: Operation not supported In my case if=virtio

Re: [Qemu-devel] [PULL 3/6] vfio-pci: Lazy PCI option ROM loading

2013-10-04 Thread Alexey Kardashevskiy
On 10/04/2013 01:39 AM, Alex Williamson wrote: During vfio-pci initfn, the device is not always in a state where the option ROM can be read. In the case of graphics cards, there's often no per function reset, which means we have host driver state affecting whether the option ROM is usable.

Re: [Qemu-devel] [PATCH v2 1/4] target-ppc: Fill in OpenFirmware names for some PowerPCCPU families

2013-10-07 Thread Alexey Kardashevskiy
On 10/01/2013 03:55 AM, Alexander Graf wrote: On 09/25/2013 11:01 AM, Alexey Kardashevskiy wrote: On 09/17/2013 12:16 AM, Alexey Kardashevskiy wrote: On 09/10/2013 02:15 PM, Alexey Kardashevskiy wrote: On 08/16/2013 08:35 AM, Andreas Färber wrote: Set the expected values for POWER7, POWER7

[Qemu-devel] savevm/loadvm

2013-10-08 Thread Alexey Kardashevskiy
Hi! I need the community help with savevm/loadvm. I run QEMU like this: ./qemu-system-ppc64 \ -drive file=virtimg/fc19_16GB.qcow2 \ -nodefaults \ -m 2048 \ -machine pseries \ -nographic \ -vga none \ -enable-kvm The disk image is an 16GB qcow2 image. Now I start the guest and do

Re: [Qemu-devel] savevm/loadvm

2013-10-09 Thread Alexey Kardashevskiy
On 10/08/2013 08:33 PM, Paolo Bonzini wrote: Il 08/10/2013 11:23, Kevin Wolf ha scritto: I think you need to modify qcow2_save_vmstate to save and restore bs-total_sectors. Can you test that and if so post the patch? It's a regression introduced by commit df2a6f29, right? Yes, that's what

Re: [Qemu-devel] savevm/loadvm

2013-10-09 Thread Alexey Kardashevskiy
On 10/09/2013 06:47 PM, Paolo Bonzini wrote: Il 09/10/2013 09:15, Alexey Kardashevskiy ha scritto: Sorry for my ignorance (I never ever touched this part of qemu) but how can you possibly avoid block.c while doing savevm? The qcow2 driver must not use posix read()/write(), right? So no matter

[Qemu-devel] [PATCH] spapr: add vio-bus devices to categories

2013-10-10 Thread Alexey Kardashevskiy
In order to get devices appear in output of ./qemu-system-ppc64 -device ?, they must be assigned to one of DEVICE_CATEGORY_. This puts VIO devices classes to corresponding categories. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- hw/char/spapr_vty.c| 1 + hw/net/spapr_llan.c

[Qemu-devel] [RFC PATCH] spapr: add ibmveth to the supported network adapters list

2013-10-10 Thread Alexey Kardashevskiy
that the list is all about PCI devices. This adds ?/help handling in spapr.c and adds ibmveth in the beginning of the list. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- This is an RFC patch. The other solutions could be: 1. add ibmveth into pci_nic_models[] in hw/pci/pci.c but this would

Re: [Qemu-devel] [PATCH v7] powerpc: add PVR mask support

2013-10-13 Thread Alexey Kardashevskiy
On 09/30/2013 09:30 PM, Alexander Graf wrote: On 27.09.2013, at 10:05, Alexey Kardashevskiy wrote: IBM POWERPC processors encode PVR as a CPU family in higher 16 bits and a CPU version in lower 16 bits. Since there is no significant change in behavior between versions, there is no point

[Qemu-devel] [RFC PATCH] spapr-vty: workaround reg property for old kernels

2013-10-15 Thread Alexey Kardashevskiy
and this is what the patch does. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- Since libvirt uses -nodefault a lot and in this case spapr-nvram gets created first and gets reg=0x7100, we cannot just ignore this. Also, it does not seem an option to require libvirt users to specify spapr

Re: [Qemu-devel] [RFC PATCH] spapr-vty: workaround reg property for old kernels

2013-10-15 Thread Alexey Kardashevskiy
On 10/16/2013 02:03 AM, Alexander Graf wrote: On 10/15/2013 10:50 AM, Alexey Kardashevskiy wrote: Old kernels ( 3.1) handle hvcX devices different in different parts. Sometime the kernel assumes that the hvc device numbers start from zero and if there is just one hvc, then it is hvc0

[Qemu-devel] virtio-blk-pci: how to tell if it is CD or HDD?

2013-10-15 Thread Alexey Kardashevskiy
Hi! Normally on sPAPR platform the IBMVSCSI host bus adapter is used which is SCSI. So when we want some image to appear as a DVD to the guest (particularly SLOF - our firmware), we use -device scsi-cd. Or QEMU extracts this automatically from the media=cdrom property of -drive (correct?). And

Re: [Qemu-devel] savevm/loadvm

2013-10-16 Thread Alexey Kardashevskiy
On 10/10/2013 02:50 PM, Alexey Kardashevskiy wrote: On 10/09/2013 06:47 PM, Paolo Bonzini wrote: Il 09/10/2013 09:15, Alexey Kardashevskiy ha scritto: Sorry for my ignorance (I never ever touched this part of qemu) but how can you possibly avoid block.c while doing savevm? The qcow2 driver

Re: [Qemu-devel] virtio-blk-pci: how to tell if it is CD or HDD?

2013-10-16 Thread Alexey Kardashevskiy
On 10/16/2013 05:36 PM, Paolo Bonzini wrote: Il 16/10/2013 07:04, Alexey Kardashevskiy ha scritto: Hi! Normally on sPAPR platform the IBMVSCSI host bus adapter is used which is SCSI. So when we want some image to appear as a DVD to the guest (particularly SLOF - our firmware), we use -device

  1   2   3   4   5   6   7   8   9   10   >