[Qemu-devel] [RFC PATCH v2 3/5] kvm_arm: Pass requester ID to MSI routing functions

2015-10-20 Thread Pavel Fedin
Introduce global kvm_arm_msi_use_devid flag and pass device IDs in kvm_arch_fixup_msi_route(). Device IDs are required by the ITS. Signed-off-by: Pavel Fedin --- target-arm/kvm.c | 6 ++ target-arm/kvm_arm.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/target-arm/kvm.c b

[Qemu-devel] [RFC PATCH v2 2/5] kernel: Add vGICv3 ITS definitions

2015-10-20 Thread Pavel Fedin
This temporary patch adds kernel API definitions. Use proper header update procedure after these features are released. Signed-off-by: Pavel Fedin --- linux-headers/asm-arm64/kvm.h | 1 + linux-headers/linux/kvm.h | 9 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a

[Qemu-devel] [RFC PATCH v2 0/5] vITS support

2015-10-20 Thread Pavel Fedin
/msg430724.html - [PATCH v3 0/7] KVM: arm/arm64: gsi routing support http://www.spinics.net/lists/kvm/msg119567.html v1 => v2: - Added registers and reset method - Added unmigratable flag - Rebased on top of current master, use kvm_arch_fixup_msi_route() now Pavel Fedin (5): hw/intc: Implem

[Qemu-devel] PING: [PATCH v4 0/7] qom: more efficient object property handling

2015-10-20 Thread Pavel Fedin
Hello! Is there any progress on this? 6/7 significantly improves startup performance, i'd like to have it accepted. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia > -Original Message- > From: qemu-devel-bounces+p.fedin=samsung

[Qemu-devel] [RFC PATCH v2 5/5] arm/virt: Add ITS to the virt board

2015-10-20 Thread Pavel Fedin
If supported by the configuration, ITS will be added automatically. This patch also renames v2m_phandle to msi_phandle because it's now used by both MSI implementations. Signed-off-by: Pavel Fedin --- hw/arm/virt.c | 47 +-- 1 file change

[Qemu-devel] [RFC PATCH v2 4/5] kvm_arm: Implement support for ITS emulation by KVM

2015-10-20 Thread Pavel Fedin
This patch relies on new kernel API which is not released yet. Signed-off-by: Pavel Fedin --- hw/intc/Makefile.objs | 1 + hw/intc/arm_gicv3_its_common.c | 2 +- hw/intc/arm_gicv3_its_kvm.c| 88 ++ 3 files changed, 90 insertions(+), 1

[Qemu-devel] [RFC PATCH v2 1/5] hw/intc: Implement ITS base class

2015-10-20 Thread Pavel Fedin
This is the basic skeleton for both KVM and software-emulated ITS. Signed-off-by: Pavel Fedin --- hw/intc/Makefile.objs | 1 + hw/intc/arm_gicv3_its_common.c | 154 + include/hw/intc/arm_gicv3_its_common.h | 72 +++ target

Re: [Qemu-devel] [PATCH v2] arm_gic_kvm: Disable live migration if not supported

2015-10-16 Thread Pavel Fedin
n parent class. For software-emulated GICv3 post_load callback is simply not used, so that would be safe. But, i remember that you don't like just refactoring, so i decided to stop at the point which you see. :) Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

[Qemu-devel] [PATCH v2] arm_gic_kvm: Disable live migration if not supported

2015-10-16 Thread Pavel Fedin
-off-by: Pavel Fedin --- v1 => v2: Do not hack VMState, use migrate_add_blocker() instead --- hw/intc/arm_gic_kvm.c| 22 +++--- include/hw/intc/arm_gic_common.h | 1 + 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/hw/intc/arm_gic_kvm.c b/hw/i

Re: [Qemu-devel] [PATCH] arm_gic_kvm: Disable live migration if not supported

2015-10-16 Thread Pavel Fedin
for making it non-const. So, if you ACK the idea itself, i'll reimplement it and post v2. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] Live migration sequence

2015-10-16 Thread Pavel Fedin
I am now trying to add one more state, something like MIGRATION_STATUS_FINISHING. It would mean that CPUs are stopped. Can you explain me migration code a bit? Where is iteration loop, and where are CPUs stopped? I am looking at migration.c but cannot say that i understand some good portion of

Re: [Qemu-devel] [PATCH] arm_gic_kvm: Disable live migration if not supported

2015-10-15 Thread Pavel Fedin
ly tried to migrate a machine with an ITS. My ITS was missing unmigratable flag. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

[Qemu-devel] [PATCH v6 3/3] kvm: Pass PCI device pointer to MSI routing functions

2015-10-15 Thread Pavel Fedin
IDs, but hw/i386/kvm/pci-assign.c also made passing PCI device pointer instead of NULL for consistency with the rest of the code. Signed-off-by: Pavel Fedin --- hw/i386/kvm/pci-assign.c | 9 + hw/vfio/pci.c| 11 ++- hw/virtio/virtio-pci.c | 5 +++-- include/sysemu

[Qemu-devel] [PATCH v6 0/3] Make KVM/MSI code device-ID-aware

2015-10-15 Thread Pavel Fedin
MemTxAttrs field. v1 => v2: - Improved commit messages, more explanations - msi_device_id() function made architecture-specific Pavel Fedin (3): kvm: Make KVM_CAP_SIGNAL_MSI globally available hw/pci: Introduce pci_requester_id() kvm: Pass PCI device pointer to MSI routing functions

[Qemu-devel] [PATCH v6 2/3] hw/pci: Introduce pci_requester_id()

2015-10-15 Thread Pavel Fedin
requester_id in order to better reflect semantics of the field. Signed-off-by: Pavel Fedin Reviewed-by: Michael S. Tsirkin Acked-by: Michael S. Tsirkin --- hw/i386/kvm/pci-assign.c | 2 +- hw/pci/msi.c | 2 +- hw/pci/pcie_aer.c| 2 +- include/exec/memattrs.h | 4

[Qemu-devel] [PATCH v6 1/3] kvm: Make KVM_CAP_SIGNAL_MSI globally available

2015-10-15 Thread Pavel Fedin
This capability is useful to determine whether we can use KVM ITS emulation on ARM Signed-off-by: Pavel Fedin --- include/sysemu/kvm.h | 9 + kvm-all.c| 10 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/include/sysemu/kvm.h b/include/sysemu

Re: [Qemu-devel] [PATCH v5 2/3] hw/pci: Introduce pci_requester_id()

2015-10-15 Thread Pavel Fedin
s, it doesn't matter. As i said before, these patches do not depend on each other. > Reviewed-by: Michael S. Tsirkin > Acked-by: Michael S. Tsirkin Thank you very much. I'll post v6 though, because of Cornelia's notice on 3/3. Kind regards, Pavel Fedin Expert Engineer S

[Qemu-devel] [PATCH] arm_gic_kvm: Disable live migration if not supported

2015-10-15 Thread Pavel Fedin
-by: Pavel Fedin --- hw/intc/arm_gic_common.c | 2 +- hw/intc/arm_gic_kvm.c| 17 ++--- hw/intc/gic_internal.h | 2 ++ 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/hw/intc/arm_gic_common.c b/hw/intc/arm_gic_common.c index 2b08175..1af4590 100644 --- a/hw/intc

Re: [Qemu-devel] [PATCH v5 3/3] kvm: Pass PCI device pointer to MSI routing functions

2015-10-15 Thread Pavel Fedin
.flags & KVM_MSI_VALID_DEVID) { kroute.u.msi.devid = pci_requester_id(dev); } --- cut --- Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

[Qemu-devel] [PATCH v5 1/3] kvm: Make KVM_CAP_SIGNAL_MSI globally available

2015-10-15 Thread Pavel Fedin
This capability is useful to determine whether we can use KVM ITS emulation on ARM Signed-off-by: Pavel Fedin --- include/sysemu/kvm.h | 9 + kvm-all.c| 10 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/include/sysemu/kvm.h b/include/sysemu

[Qemu-devel] [PATCH v5 2/3] hw/pci: Introduce pci_requester_id()

2015-10-15 Thread Pavel Fedin
requester_id in order to better reflect semantics of the field. Signed-off-by: Pavel Fedin --- hw/i386/kvm/pci-assign.c | 2 +- hw/pci/msi.c | 2 +- hw/pci/pcie_aer.c| 2 +- include/exec/memattrs.h | 4 ++-- include/hw/pci/pci.h | 5 + 5 files changed, 10 insertions

[Qemu-devel] [PATCH v5 3/3] kvm: Pass PCI device pointer to MSI routing functions

2015-10-15 Thread Pavel Fedin
IDs, but hw/i386/kvm/pci-assign.c also made passing PCI device pointer instead of NULL for consistency with the rest of the code. Signed-off-by: Pavel Fedin --- hw/i386/kvm/pci-assign.c | 9 + hw/vfio/pci.c| 11 ++- hw/virtio/virtio-pci.c | 5 +++-- include/sysemu

[Qemu-devel] [PATCH v5 0/3] Make KVM/MSI code device-ID-aware

2015-10-15 Thread Pavel Fedin
ations - msi_device_id() function made architecture-specific Pavel Fedin (3): kvm: Make KVM_CAP_SIGNAL_MSI globally available hw/pci: Introduce pci_requester_id() kvm: Pass PCI device pointer to MSI routing functions hw/i386/kvm/pci-assign.c | 11 ++- hw/pci/msi.c | 2

Re: [Qemu-devel] [PATCH v4 2/3] hw/pci: Introduce pci_requester_id()

2015-10-15 Thread Pavel Fedin
n v1? Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] [PATCH v4 2/3] hw/pci: Introduce pci_requester_id()

2015-10-15 Thread Pavel Fedin
gt; > + * Copyright (c) 2015 Samsung Electronics Co., Ltd. > > + * Written by Pavel Fedin > > + * > > + * This work is licensed under the terms of the GNU GPL, version 2 or > > later. > > + * See the COPYING file in the top-level directory. > > + * > > + */ >

[Qemu-devel] [PATCH v4 1/3] kvm: Make KVM_CAP_SIGNAL_MSI globally available

2015-10-14 Thread Pavel Fedin
This capability is useful to determine whether we can use KVM ITS emulation on ARM Signed-off-by: Pavel Fedin --- include/sysemu/kvm.h | 9 + kvm-all.c| 10 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/include/sysemu/kvm.h b/include/sysemu

[Qemu-devel] [PATCH v4 3/3] kvm: Pass PCI device pointer to MSI routing functions

2015-10-14 Thread Pavel Fedin
IDs, but hw/i386/kvm/pci-assign.c also made passing PCI device pointer instead of NULL for consistency with the rest of the code. Signed-off-by: Pavel Fedin --- hw/i386/kvm/pci-assign.c | 9 + hw/vfio/pci.c| 11 ++- hw/virtio/virtio-pci.c | 5 +++-- include/sysemu

[Qemu-devel] [PATCH v4 2/3] hw/pci: Introduce pci_requester_id()

2015-10-14 Thread Pavel Fedin
stub just returns 0. MemTxAttrs.stream_id also renamed to requester_id in order to better reflect semantics of the field. Signed-off-by: Pavel Fedin --- hw/pci/msi.c | 2 +- include/exec/memattrs.h | 4 ++-- include/hw/pci/pci.h | 1 + stubs/Makefile.objs | 1 + stubs

[Qemu-devel] [PATCH v4 0/3] Make KVM/MSI code device-ID-aware

2015-10-14 Thread Pavel Fedin
v2 => v3: - Use official "requester ID" denotion everywhere. Renamed getter function and MemTxAttrs field. v1 => v2: - Improved commit messages, more explanations - msi_device_id() function made architecture-specific Pavel Fedin (3): kvm: Make KVM_CAP_SIGNAL_MSI globally

[Qemu-devel] [PATCH v3 1/3] kvm: Make KVM_CAP_SIGNAL_MSI globally available

2015-10-14 Thread Pavel Fedin
This capability is useful to determine whether we can use KVM ITS emulation on ARM Signed-off-by: Pavel Fedin --- include/sysemu/kvm.h | 9 + kvm-all.c| 10 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/include/sysemu/kvm.h b/include/sysemu

[Qemu-devel] [PATCH v3 0/3] Make KVM/MSI code device-ID-aware

2015-10-14 Thread Pavel Fedin
function and MemTxAttrs field. v1 => v2: - Improved commit messages, more explanations - msi_device_id() function made architecture-specific Pavel Fedin (3): kvm: Make KVM_CAP_SIGNAL_MSI globally available hw/pci: Introduce msi_requester_id() kvm: Pass PCI device pointer to MSI routing functio

[Qemu-devel] [PATCH v3 3/3] kvm: Pass PCI device pointer to MSI routing functions

2015-10-14 Thread Pavel Fedin
IDs, but hw/i386/kvm/pci-assign.c also made passing PCI device pointer instead of NULL for consistency with the rest of the code. Signed-off-by: Pavel Fedin --- hw/i386/kvm/pci-assign.c | 9 + hw/vfio/pci.c| 11 ++- hw/virtio/virtio-pci.c | 5 +++-- include/sysemu

[Qemu-devel] [PATCH v3 2/3] hw/pci: Introduce msi_requester_id()

2015-10-14 Thread Pavel Fedin
stub just returns 0. MemTxAttrs.stream_id also renamed to requester_id in order to better reflect semantics of the field. Signed-off-by: Pavel Fedin --- hw/pci/msi.c | 2 +- include/exec/memattrs.h | 4 ++-- include/hw/pci/msi.h | 1 + stubs/Makefile.objs | 1 + stubs

Re: [Qemu-devel] [PATCH v2 0/3] Make KVM/MSI code device-ID-aware

2015-10-14 Thread Pavel Fedin
ust rename stream_id to requester_id yourself? Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] [PATCH v2 0/3] Make KVM/MSI code device-ID-aware

2015-10-14 Thread Pavel Fedin
ice * (or even DeviceState *) there? "there" = where? In MemTxAttrs? Would it be good to have 64-bit pointer instead of 16-bit ID there? It is passed by value, and current version fits into register even on 32-bit host. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

[Qemu-devel] [PATCH v2 1/3] kvm: Make KVM_CAP_SIGNAL_MSI globally available

2015-10-14 Thread Pavel Fedin
This capability is useful to determine whether we can use KVM ITS emulation on ARM Signed-off-by: Pavel Fedin --- include/sysemu/kvm.h | 9 + kvm-all.c| 10 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/include/sysemu/kvm.h b/include/sysemu

[Qemu-devel] [PATCH v2 0/3] Make KVM/MSI code device-ID-aware

2015-10-14 Thread Pavel Fedin
ade architecture-specific Pavel Fedin (3): kvm: Make KVM_CAP_SIGNAL_MSI globally available hw/pci: Introduce msi_device_id() kvm: Pass PCI device pointer to MSI routing functions hw/i386/kvm/pci-assign.c | 9 + hw/pci/msi.c | 2 +- hw/vfio/pci.c| 11 ++-

[Qemu-devel] [PATCH v2 3/3] kvm: Pass PCI device pointer to MSI routing functions

2015-10-14 Thread Pavel Fedin
hw/i386/kvm/pci-assign.c also passes PCI device pointer instead of NULL for consistency with the rest of the code. Signed-off-by: Pavel Fedin --- hw/i386/kvm/pci-assign.c | 9 + hw/vfio/pci.c| 11 ++- hw/virtio/virtio-pci.c | 5 +++-- include/sysemu/kvm.h | 5

[Qemu-devel] [PATCH v2 2/3] hw/pci: Introduce msi_device_id()

2015-10-14 Thread Pavel Fedin
0. Signed-off-by: Pavel Fedin --- hw/pci/msi.c | 2 +- include/hw/pci/msi.h | 1 + stubs/Makefile.objs | 1 + stubs/msi.c | 16 target-arm/Makefile.objs | 1 + target-arm/msi.c | 16 6 files changed, 36 insertions

Re: [Qemu-devel] [PATCH v4 0/7] qom: more efficient object property handling

2015-10-14 Thread Pavel Fedin
y it introduces ObjectClass properties. Tested-by: Pavel Fedin > Probably the only controversial thing is the item Pavel points > out about object_child_foreach iterators now being forbidden > from modifying the object composition tree. As i already wrote, current code does not modify the t

Re: [Qemu-devel] [PATCH] Add mp-affinity property for ARM CPU class

2015-10-13 Thread Pavel Fedin
ay, what about GICv3 data format? Are you going to review this part and do something with it? This would also advance Shlomo's work i think. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] [PATCH] Add mp-affinity property for ARM CPU class

2015-10-13 Thread Pavel Fedin
) also uses MPIDR format. Check out GICv3 live migration RFC v2 for one possible use case. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] [PATCH 0/3] Make KVM/MSI code device-ID-aware

2015-10-13 Thread Pavel Fedin
d to target-XXX. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] [PATCH 0/3] Make KVM/MSI code device-ID-aware

2015-10-13 Thread Pavel Fedin
sed because KVM API is not released yet. See my full vITS patchset for information on how it will be used. And yes, the patchset is a bit obsolete, so it doesn't have msi_device_id() inline, there's copypasted calculation instead. What exactly do you suggest to move to vfio? Kind regards,

Re: [Qemu-devel] [PATCH 2/3] hw/pci: Introduce msi_device_id()

2015-10-13 Thread Pavel Fedin
er. If this ever pops up on any other arch, we'll be able to easily move it to target-XXX. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] [PATCH v4 7/7] qom: allow properties to be registered against classes

2015-10-13 Thread Pavel Fedin
Hello! > -Original Message- > From: qemu-devel-bounces+p.fedin=samsung@nongnu.org [mailto:qemu-devel- > bounces+p.fedin=samsung@nongnu.org] On Behalf Of Daniel P. Berrange > Sent: Tuesday, October 13, 2015 3:38 PM > To: qemu-devel@nongnu.org > Cc: Pavel Fedin;

Re: [Qemu-devel] Live migration sequence

2015-10-13 Thread Pavel Fedin
ect. Thank you very much for your cooperation and explanations. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

[Qemu-devel] [PATCH 2/3] hw/pci: Introduce msi_device_id()

2015-10-13 Thread Pavel Fedin
We will need to get device IDs in KVM IRQ routing code too. This patch introduces reusable convenient way to obtain it from the device pointer. Signed-off-by: Pavel Fedin --- hw/pci/msi.c | 2 +- include/hw/pci/msi.h | 5 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH 0/3] Make KVM/MSI code device-ID-aware

2015-10-13 Thread Pavel Fedin
unreleased kernel APIs. Pavel Fedin (3): kvm: Make KVM_CAP_SIGNAL_MSI globally available hw/pci: Introduce msi_device_id() kvm: Pass PCI device pointer to MSI routing functions hw/i386/kvm/pci-assign.c | 9 + hw/pci/msi.c | 2 +- hw/vfio/pci.c| 11

[Qemu-devel] [PATCH 3/3] kvm: Pass PCI device pointer to MSI routing functions

2015-10-13 Thread Pavel Fedin
In-kernel ITS emulation requires to supply device IDs. These IDs can be retrieved from the device pointer using msi_device_id() function. Signed-off-by: Pavel Fedin --- hw/i386/kvm/pci-assign.c | 9 + hw/vfio/pci.c| 11 ++- hw/virtio/virtio-pci.c | 5

[Qemu-devel] [PATCH 1/3] kvm: Make KVM_CAP_SIGNAL_MSI globally available

2015-10-13 Thread Pavel Fedin
This capability is useful to determine whether we can use KVM ITS emulation on ARM Signed-off-by: Pavel Fedin --- include/sysemu/kvm.h | 9 + kvm-all.c| 10 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/include/sysemu/kvm.h b/include/sysemu

Re: [Qemu-devel] Live migration sequence

2015-10-13 Thread Pavel Fedin
g to generate a lot of RAM that needs syncing. Well, reducing downtime would be the next task. :) First i'd like to get it working at all. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

[Qemu-devel] [RFC PATCH v2 2/5] hw/intc/arm_gicv3_common: Add state information

2015-10-13 Thread Pavel Fedin
software emulation of GICv3 with v2 backwards compatilibity mode. Signed-off-by: Pavel Fedin --- hw/intc/arm_gicv3_common.c | 111 +- hw/intc/gicv3_internal.h | 225 + include/hw/intc/arm_gicv3_common.h | 76 - 3

[Qemu-devel] [RFC PATCH v2 4/5] hw/intc/arm_gicv3_kvm: Implement get/put functions

2015-10-13 Thread Pavel Fedin
This actually implements pre_save and post_load methods for in-kernel vGICv3. Signed-off-by: Pavel Fedin --- hw/intc/arm_gicv3_kvm.c | 463 +++- 1 file changed, 459 insertions(+), 4 deletions(-) diff --git a/hw/intc/arm_gicv3_kvm.c b/hw/intc

[Qemu-devel] [RFC PATCH v2 5/5] hw/intc/arm_gicv3_common: Add vmstate descriptors

2015-10-13 Thread Pavel Fedin
Add state structure descriptors and actually enable live migration. In order to describe fixed-size bitmaps, VMSTATE_BITMAP_STATIC() macro is added. Signed-off-by: Pavel Fedin --- hw/intc/arm_gicv3_common.c | 46 - include/migration/vmstate.h | 9

[Qemu-devel] [RFC PATCH v2 1/5] target-arm: Add mp-affinity property for ARM CPU class

2015-10-13 Thread Pavel Fedin
Allows to override default affinity IDs on a per-machine basis, and read assigned IDs. Will be used by vGICv3 live migration code. Signed-off-by: Pavel Fedin --- target-arm/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target-arm/cpu.c b/target-arm/cpu.c index 30739fc..3810709

[Qemu-devel] [RFC PATCH v2 3/5] kernel: Add definitions for GICv3 attributes

2015-10-13 Thread Pavel Fedin
This temporary patch adds kernel API definitions. Use proper header update procedure after these features are released. Signed-off-by: Pavel Fedin --- linux-headers/asm-arm64/kvm.h | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/linux-headers/asm-arm64

[Qemu-devel] [RFC PATCH v2 0/5] GICv3 live migration support

2015-10-13 Thread Pavel Fedin
kernel part. v1 => v2: - Use different kernel API, agreed upon by KVM developers - Reworked state representation, do not duplicate SPI fields any more - Added basic LPI support (PROPBASER and PENDBASER). Pavel Fedin (5): target-arm: Add mp-affinity property for ARM CPU class hw/i

Re: [Qemu-devel] Live migration sequence

2015-10-13 Thread Pavel Fedin
Or, well, we could put the question the other way: imagine that in pre_save i tell my emulated device to flush its cached state into RAM-based tables. In post_load i could tell the device to re-read data from RAM into its cache. So, what do i need in order to make these tables in RAM to migrate corr

Re: [Qemu-devel] [PATCH 2/2] hw/arm/virt: don't use a15memmap directly

2015-10-12 Thread Pavel Fedin
ze()). Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] [PATCH 1/2] [RFC] arm_gic_common.h: add gicv2 aliases for defines

2015-10-11 Thread Pavel Fedin
t versions of my GICv3 patches did use own #define, but i was criticized for using GICV3_INTERNAL in my code and having GIC_INTERNAL in kvm_arm_gic_set_irq(), which is shared by both KVM implementations. So, i decided to use GIC_INTERNAL everywhere and inherited it from v2. Kind regards, Pavel

Re: [Qemu-devel] [PULL 00/48] ivshmem series

2015-10-09 Thread Pavel Fedin
is passed from outside, and not file name, isn't it? Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] [PULL 00/48] ivshmem series

2015-10-09 Thread Pavel Fedin
g thoroughly, but IIRC he did the same change some time ago, which got drowned in reviewers' mailbox. Just pick it up with his authorship and make a peace finally :) > > Acked-by: Pavel Fedin > > Do you want me to ack every commit? I guess it's enought as a overal

Re: [Qemu-devel] [PULL 00/48] ivshmem series

2015-10-09 Thread Pavel Fedin
ve your single-line-authorship conflict and get this awesome work in master. If i have the authority, then... Acked-by: Pavel Fedin Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] [PULL 00/48] ivshmem series

2015-10-09 Thread Pavel Fedin
the same reason, we cannot also exchange data between host and VM. Is it a flaw or do we just do something wrong? Tested-by: Igor Skalkin Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

[Qemu-devel] [PATCH] Add mp-affinity property for ARM CPU class

2015-10-09 Thread Pavel Fedin
This allows to override default affinity IDs on a per-machine basis, and possibility to retrieve IDs will be used by vGICv3 live migration code. Signed-off-by: Pavel Fedin --- Since this popped up several times on the mailing list, i decided to publish this early. --- target-arm/cpu.c | 1 + 1

Re: [Qemu-devel] [PATCH v3 4/5] qom: replace object property list with GHashTable

2015-10-08 Thread Pavel Fedin
Hello! > -Original Message- > From: Daniel P. Berrange [mailto:berra...@redhat.com] > Sent: Thursday, October 08, 2015 5:09 PM > To: qemu-devel@nongnu.org > Cc: Andreas Färber; Pavel Fedin; Daniel P. Berrange > Subject: [PATCH v3 4/5] qom: replace object property li

Re: [Qemu-devel] [PATCH v3 0/5] qom: more efficient object property handling

2015-10-08 Thread Pavel Fedin
ion with my standalone patch, but i have checked your series, it also doesn't touch SPAPR code. Tested-by: Igor Skalkin Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] [PATCH] KVM: arm/arm64: Add VGICv3 save/restore API documentation

2015-10-08 Thread Pavel Fedin
Hello! > One of the major problems with the emulation code is that it tried > to keep the old GICv2 emulation datastructures, macros, etc. Don't > try to use it as a guide for how to arrange the data structures. Ok. I will redo this after finishing kernel API respin. Kind regard

Re: [Qemu-devel] [PATCH] KVM: arm/arm64: Add VGICv3 save/restore API documentation

2015-10-08 Thread Pavel Fedin
ke GIC_TEST_xxx, and cpu mask is always (1 << ncpu). So, can we safely replace mask with just CPU number in these macros? It would solve the problem. Shlomo, your word? Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

[Qemu-devel] Live migration sequence

2015-10-08 Thread Pavel Fedin
. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] [PATCH v4] ivshmem: allow the sharing of hugepages

2015-10-07 Thread Pavel Fedin
the series?" Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] [PATCH v4] ivshmem: allow the sharing of hugepages

2015-10-07 Thread Pavel Fedin
, i'm not really familiar in hugetlb details. I only know that managing huge pages is done via hugetlbfs. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] [PATCH v4] ivshmem: allow the sharing of hugepages

2015-10-07 Thread Pavel Fedin
series. I have seen that "ivshmem can now use host memory backend", but how to set it up? I checked documentation patch, did not find good explanation there. But, well, programmers never read docs :) Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] [PATCH v4] ivshmem: allow the sharing of hugepages

2015-10-07 Thread Pavel Fedin
to happen? I see there's some strong authorship-related conflict around it. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] [PATCH v8] hw/arm/virt: Add high MMIO PCI region, 512G in size

2015-10-07 Thread Pavel Fedin
Hello! > Nudge -- have you reported this as a kernel bug against the > PCI generic driver yet? Sorry, stopped tracking this topic after option upstreaming. Just sent out patches, cc'ed to you. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] PING: [RFC PATCH 0/4] GICv3 live migration support

2015-10-07 Thread Pavel Fedin
6219.html http://www.spinics.net/lists/kvm/msg120483.html http://www.spinics.net/lists/kvm-arm/msg16351.html http://www.spinics.net/lists/kvm/msg121588.html Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

[Qemu-devel] PING: [RFC PATCH 0/4] GICv3 live migration support

2015-10-07 Thread Pavel Fedin
Knock-knock! PM: I remember we had a talk that we should settle down on migration data format. Isn't it right time? Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia > -Original Message- > From: qemu-devel-bounces+p.fedin=samsung

Re: [Qemu-devel] [PATCH] qobject: Replace property list with GHashTable

2015-10-07 Thread Pavel Fedin
//github.com/GNOME/glib/blob/master/glib/ghash.c#L212 Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

[Qemu-devel] [PATCH v2] qobject: Replace property list with GHashTable

2015-10-06 Thread Pavel Fedin
-safe version. However, the code seems not to modify objects via these functions. Signed-off-by: Pavel Fedin --- v1 => v2: - Fixed stupid bug in object_unparent(), use correct object --- include/qom/object.h | 4 +-- qmp.c| 8 +++-- qom/object.c

Re: [Qemu-devel] [PATCH] qobject: Replace property list with GHashTable

2015-10-06 Thread Pavel Fedin
Hello! > Shouldn't this help similarly with the problem that 94649d423e worked > around? (Although that patch has standalone merits of course.) Yes, and also 6c76b37742d4db8176af37b667b5420727e79e2c. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

[Qemu-devel] [PATCH v4] ivshmem: allow the sharing of hugepages

2015-10-06 Thread Pavel Fedin
hugetlbfs mountpoint. Signed-off-by: Damien Millescamps Signed-off-by: Pavel Fedin --- 2 years passed since the last review of this, and the original author never came back. So i decided to pick up this work because my project is interested in this feature. I am keeping patch version numberin

[Qemu-devel] [PATCH] qobject: Replace property list with GHashTable

2015-10-06 Thread Pavel Fedin
-safe version. However, the code seems not to modify objects via these functions. Signed-off-by: Pavel Fedin --- include/qom/object.h | 4 +-- qmp.c| 8 +++-- qom/object.c | 98 +++- vl.c | 4 ++- 4 files ch

[Qemu-devel] [RFC PATCH 0/4] GICv3 live migration support

2015-10-01 Thread Pavel Fedin
er. Since 'long' maps to something, i think that adding a specific code for it would be too much anyway. May be add configure test for sizeof(long) ? Pavel Fedin (4): hw/intc/arm_gicv3_common: Add state information kernel: Add definitions for GICv3 attributes hw/intc/arm_gicv3_kvm: Im

[Qemu-devel] [RFC PATCH 4/4] hw/intc/arm_gicv3_common: Add vmstate descriptors

2015-10-01 Thread Pavel Fedin
Add state structure descriptors and actually enable live migration. Signed-off-by: Pavel Fedin --- hw/intc/arm_gicv3_common.c | 64 +- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/hw/intc/arm_gicv3_common.c b/hw/intc

[Qemu-devel] [RFC PATCH 1/4] hw/intc/arm_gicv3_common: Add state information

2015-09-30 Thread Pavel Fedin
software emulation of GICv3 with v2 backwards compatilibity mode. Signed-off-by: Pavel Fedin --- hw/intc/arm_gicv3_common.c | 135 +++- hw/intc/gicv3_internal.h | 152 + include/hw/intc/arm_gicv3_common.h | 76

[Qemu-devel] [RFC PATCH 2/4] kernel: Add definitions for GICv3 attributes

2015-09-30 Thread Pavel Fedin
This temporary patch adds kernel API definitions. Use proper header update procedure after these features are released. Signed-off-by: Pavel Fedin --- linux-headers/asm-arm64/kvm.h | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/linux-headers/asm-arm64/kvm.h b

[Qemu-devel] [RFC PATCH 3/4] hw/intc/arm_gicv3_kvm: Implement get/put functions

2015-09-30 Thread Pavel Fedin
This actually implements pre_save and post_load methods for in-kernel vGICv3. Signed-off-by: Pavel Fedin --- hw/intc/arm_gicv3_kvm.c | 391 +++- 1 file changed, 387 insertions(+), 4 deletions(-) diff --git a/hw/intc/arm_gicv3_kvm.c b/hw/intc

Re: [Qemu-devel] ARM CPU affinities

2015-09-28 Thread Pavel Fedin
during machine model creation. And this has nothing to do with KVM. KVM code is executed after default MPIDR is assigned and overrides IDs with whatever it gets from the kernel. All you can do with current kernels is to patch device tree with new IDs. Kind regards, Pavel Fedin Expert Enginee

[Qemu-devel] Test N2

2015-09-28 Thread Pavel Fedin
Just a test, please ignore. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] ARM CPU affinities

2015-09-28 Thread Pavel Fedin
not go to the list indeed... Don't understand why. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

Re: [Qemu-devel] ARM CPU affinities

2015-09-28 Thread Pavel Fedin
it resets its MPIDR value to something that it wants it to be. IIRC the hardcoded assignment is 16 CPUs per cluster starting from 0:0. I have some strange problem with delivering mails, my emails do not seem to make it to the list. Please reply me privately if you got this. Kind regards,

[Qemu-devel] Test

2015-09-28 Thread Pavel Fedin
Hello! I have some strange problems, my emails don't make it to the list. Please ignore this, i am self-testing. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

[Qemu-devel] [RFC PATCH 6/6] arm/virt: Add ITS to the virt board

2015-09-28 Thread Pavel Fedin
If supported by the configuration, ITS will be added automatically. This patch also renames v2m_phandle to msi_phandle because it's now used by both MSI implementations. Signed-off-by: Pavel Fedin --- hw/arm/virt.c | 47 +-- 1 file change

[Qemu-devel] [RFC PATCH 2/6] hw/intc: Implement ITS base class

2015-09-28 Thread Pavel Fedin
This is the basic skeleton for both KVM and software-emulated ITS. Currently it is mostly a placeholder, however in future it is going to contain device state necessary for live migration Signed-off-by: Pavel Fedin --- hw/intc/Makefile.objs | 1 + hw/intc

[Qemu-devel] [RFC PATCH 5/6] kvm_arm: Implement support for ITS emulation by KVM

2015-09-28 Thread Pavel Fedin
This patch relies on new kernel API which is not released yet. Signed-off-by: Pavel Fedin --- hw/intc/Makefile.objs | 1 + hw/intc/arm_gicv3_its_kvm.c | 88 + 2 files changed, 89 insertions(+) create mode 100644 hw/intc/arm_gicv3_its_kvm.c

[Qemu-devel] [RFC PATCH 4/6] kvm: Implement passing device ID to MSI routing functions

2015-09-28 Thread Pavel Fedin
Routing add/update functions now take additional PCIDevice pointer. Also, in order to provide backwards compatibility with older kernels, a new kvm_msi_flags global variable is provided, and machines, wishing to use new MSI features, must set appropriates flags in it. Signed-off-by: Pavel Fedin

[Qemu-devel] [RFC PATCH 0/6] vITS support

2015-09-28 Thread Pavel Fedin
/kvm/msg119567.html Pavel Fedin (6): kvm: Make KVM_CAP_SIGNAL_MSI globally available hw/intc: Implement ITS base class Add vGICv3 ITS definitions kvm: Implement passing device ID to MSI routing functions kvm_arm: Implement support for ITS emulation by KVM arm/virt: Add ITS to the virt

[Qemu-devel] [RFC PATCH 3/6] Add vGICv3 ITS definitions

2015-09-28 Thread Pavel Fedin
This temporary patch adds kernel API definitions. Use proper header update procedure after these features are released. Signed-off-by: Pavel Fedin --- linux-headers/asm-arm64/kvm.h | 1 + linux-headers/linux/kvm.h | 9 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a

[Qemu-devel] [RFC PATCH 1/6] kvm: Make KVM_CAP_SIGNAL_MSI globally available

2015-09-28 Thread Pavel Fedin
This capability is useful to determine whether we can use KVM ITS emulation on ARM Signed-off-by: Pavel Fedin --- include/sysemu/kvm.h | 9 + kvm-all.c| 10 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/include/sysemu/kvm.h b/include/sysemu

<    1   2   3   4   5   6   >