Re: [PATCH kvm-unit-tests] access: check SMEP on prefetch pte path

2011-06-27 Thread Xiao Guangrong
On 06/25/2011 10:44 AM, Yang, Wei Y wrote: +void set_cr4_smep(int smep) +{ +unsigned long cr4 = read_cr4(); + +cr4 = ~CR4_SMEP_MASK; +if (smep) + cr4 |= CR4_SMEP_MASK; +write_cr4(cr4); +} + It can work if the box does not support SMEP? It will report unhandled

[PATCH -V2] tools/kvm/9p: Add encode/decode routines for protocol data

2011-06-27 Thread Aneesh Kumar K.V
The protocol data is in little-endian format. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com --- tools/kvm/Makefile|1 + tools/kvm/include/kvm/virtio-9p.h | 81 ++- tools/kvm/virtio/9p-pdu.c | 237 ++ tools/kvm/virtio/9p.c

Re: [PATCH v2 01/22] KVM: MMU: fix walking shadow page table

2011-06-27 Thread Xiao Guangrong
On 06/23/2011 01:13 AM, Marcelo Tosatti wrote: On Wed, Jun 22, 2011 at 10:28:04PM +0800, Xiao Guangrong wrote: Properly check the last mapping, and do not walk to the next level if last spte is met Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- arch/x86/kvm/mmu.c |9

Re: [PATCH -V2] tools/kvm/9p: Add encode/decode routines for protocol data

2011-06-27 Thread Pekka Enberg
This breaks 'make check': ./kvm run -d tests/boot/boot_test.iso -p init=init Error: unknown switch `d' usage: kvm run [options] [kernel image] Basic options: -0, make: *** [check] Segmentation fault -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a

Re: SR-IOV and KVM?

2011-06-27 Thread Troels Arvin
David Ahern wrote: 82576EB and a Dell R410 are working fine for me, but my host OS is Fedora 14, not RHEL6. 82576EB is a dual-port embedded NIC? (The 82576 which is in my R710 is a quad-port PCIe card.) Does your setup allow for SR-IOV without having to turn off ACS? (ACS is a security

Re: [PATCH -V2] tools/kvm/9p: Add encode/decode routines for protocol data

2011-06-27 Thread Aneesh Kumar K.V
On Mon, 27 Jun 2011 10:35:49 +0300 (EEST), Pekka Enberg penb...@kernel.org wrote: This breaks 'make check': ./kvm run -d tests/boot/boot_test.iso -p init=init Error: unknown switch `d' usage: kvm run [options] [kernel image] Basic options: -0, make: *** [check] Segmentation

[PATCH] qemu-kvm: Fix in-kernel PIC reset

2011-06-27 Thread Jan Kiszka
Lacking sync of the user space state to the kernel after system reset left the PIC behind in an undefined state. This broke IRQ delivery in some scenarios, e.g. when resetting while in the BIOS. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/i8259.c |7 ++- 1 files changed, 6

[PATCH] qemu-kvm: Fix in-kernel PIT reset

2011-06-27 Thread Jan Kiszka
Analogously to the PIC, we were lacking sync of the PIT user space state to the kernel after reset. Fix it pragmatically, the code will be reworked for upstream anyway. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/i8254.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)

[PATCH -V3] tools/kvm/9p: Add encode/decode routines for protocol data

2011-06-27 Thread Aneesh Kumar K.V
The protocol data is in little-endian format. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com --- tools/kvm/Makefile|1 + tools/kvm/include/kvm/virtio-9p.h | 80 ++- tools/kvm/virtio/9p-pdu.c | 239 ++ tools/kvm/virtio/9p.c

Re: [PATCH -V2] tools/kvm/9p: Add encode/decode routines for protocol data

2011-06-27 Thread Aneesh Kumar K.V
On Mon, 27 Jun 2011 15:05:13 +0530, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: On Mon, 27 Jun 2011 10:35:49 +0300 (EEST), Pekka Enberg penb...@kernel.org wrote: This breaks 'make check': ./kvm run -d tests/boot/boot_test.iso -p init=init Error: unknown switch `d'

[PATCH v3 21/22] KVM: MMU: mmio page fault support

2011-06-27 Thread Xiao Guangrong
The idea is from Avi: | We could cache the result of a miss in an spte by using a reserved bit, and | checking the page fault error code (or seeing if we get an ept violation or | ept misconfiguration), so if we get repeated mmio on a page, we don't need to | search the slot list/tree. |

[RFC v2 09/20] pci: pass address space to pci bus when created

2011-06-27 Thread Avi Kivity
This is now done sloppily, via get_system_memory(). Eventually callers will be converted to stop using that. Signed-off-by: Avi Kivity a...@redhat.com --- hw/apb_pci.c |2 ++ hw/bonito.c|4 +++- hw/grackle_pci.c |5 +++-- hw/gt64xxx.c |4 +++- hw/pc.h

[RFC v2 18/20] cirrus: simplify vga window mmio access functions

2011-06-27 Thread Avi Kivity
Make use of the memory API's ability to satisfy multi-byte accesses via multiple single-byte accesses. Signed-off-by: Avi Kivity a...@redhat.com --- hw/cirrus_vga.c | 83 -- 1 files changed, 13 insertions(+), 70 deletions(-) diff --git

[RFC v2 10/20] pci: add MemoryRegion based BAR management API

2011-06-27 Thread Avi Kivity
Allow registering a BAR using a MemoryRegion. Once all users are converted, pci_register_bar() and pci_register_bar_simple() will be removed. Signed-off-by: Avi Kivity a...@redhat.com --- hw/pci.c | 47 +++ hw/pci.h |3 +++ 2 files changed, 42

[RFC v2 04/20] Internal interfaces for memory API

2011-06-27 Thread Avi Kivity
get_system_memory() provides the root of the memory hierarchy. This interface is intended to be private between memory.c and exec.c. If this file is included elsewhere, it should be regarded as a bug (or TODO item). However, it will be temporarily needed for the conversion to hierarchical memory

[RFC v2 00/20] Memory API

2011-06-27 Thread Avi Kivity
As expected, this is taking longer than expected, so I'm releasing something less complete than I'd have liked. Not even all of the PC machine is converted, but the difficult parts are (cirrus). It appears to work well. The major change compared to v1 is the introduction of

[RFC v2 02/20] memory: implement dirty tracking

2011-06-27 Thread Avi Kivity
Currently dirty tracking is implemented by passing through all calls to the underlying cpu_physical_memory_*() calls. Signed-off-by: Avi Kivity a...@redhat.com --- memory.c | 39 +++ memory.h |1 + 2 files changed, 32 insertions(+), 8 deletions(-) diff

[RFC v2 08/20] pc: move global memory map out of pc_init1() and into its callers

2011-06-27 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/pc_piix.c | 15 --- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index d83854c..f2d0476 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -68,7 +68,8 @@ static void ioapic_init(IsaIrqState

[RFC v2 12/20] usb-ohci: convert to MemoryRegion

2011-06-27 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/usb-ohci.c | 42 +- 1 files changed, 17 insertions(+), 25 deletions(-) diff --git a/hw/usb-ohci.c b/hw/usb-ohci.c index 5d2ae01..e6a901f 100644 --- a/hw/usb-ohci.c +++ b/hw/usb-ohci.c @@ -62,7 +62,7 @@

[RFC v2 07/20] pc: convert pc_memory_init() to memory API

2011-06-27 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- hw/pc.c | 59 --- hw/pc.h |1 + 2 files changed, 41 insertions(+), 19 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 369566a..1c9d89a 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -41,6 +41,7

[RFC v2 06/20] pc: grab system_memory

2011-06-27 Thread Avi Kivity
While eventually this should come from the machine initialization function, take a short cut to avoid converting all machines now. Signed-off-by: Avi Kivity a...@redhat.com --- hw/pc.c |3 ++- hw/pc.h |4 +++- hw/pc_piix.c |8 +++- 3 files changed, 12 insertions(+), 3

[RFC v2 11/20] sysbus: add MemoryRegion based memory management API

2011-06-27 Thread Avi Kivity
Allow registering sysbus device memory using a MemoryRegion. Once all users are converted, sysbus_init_mmio() and sysbus_init_mmio_cb() will be removed. Signed-off-by: Avi Kivity a...@redhat.com --- hw/sysbus.c | 27 --- hw/sysbus.h |3 +++ 2 files changed, 27

[RFC v2 05/20] exec.c: initialize memory map

2011-06-27 Thread Avi Kivity
Allocate the root memory region and initialize it. Signed-off-by: Avi Kivity a...@redhat.com --- exec.c | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/exec.c b/exec.c index b03b5be..9b894b9 100644 --- a/exec.c +++ b/exec.c @@ -34,6 +34,8 @@ #include

[RFC v2 01/20] Hierarchical memory region API

2011-06-27 Thread Avi Kivity
The memory API separates the attributes of a memory region (its size, how reads or writes are handled, dirty logging, and coalescing) from where it is mapped and whether it is enabled. This allows a device to configure a memory region once, then hand it off to its parent bus to map it according

[RFC v2 03/20] memory: merge adjacent segments of a single memory region

2011-06-27 Thread Avi Kivity
Simple implementations of memory routers, for example the Cirrus VGA memory banks or the 440FX PAM registers can generate adjacent memory regions which are contiguous. Detect these and merge them; this saves kvm memory slots and shortens lookup times. Signed-off-by: Avi Kivity a...@redhat.com

[RFC v2 14/20] vmsvga: don't remember pci BAR address in callback any more

2011-06-27 Thread Avi Kivity
We're going to remove the callback, so we can't use it to save the address. Use the pci API instead. Signed-off-by: Avi Kivity a...@redhat.com --- hw/vmware_vga.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c index

[RFC v2 17/20] cirrus: simplify bitblt BAR access functions

2011-06-27 Thread Avi Kivity
Make use of the memory API's ability to satisfy multi-byte accesses via multiple single-byte accesses. Signed-off-by: Avi Kivity a...@redhat.com --- hw/cirrus_vga.c | 87 ++ 1 files changed, 16 insertions(+), 71 deletions(-) diff --git

[RFC v2 13/20] pci: add API to get a BAR's mapped address

2011-06-27 Thread Avi Kivity
This is a hack, for devices that have a back-channel to read this address back outside the normal configuration mechanisms, such as VMware svga. Signed-off-by: Avi Kivity a...@redhat.com --- hw/pci.c |5 + hw/pci.h |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git

[RFC v2 20/20] cirrus: simplify linear framebuffer access functions

2011-06-27 Thread Avi Kivity
Make use of the memory API's ability to satisfy multi-byte accesses via multiple single-byte accesses. Signed-off-by: Avi Kivity a...@redhat.com --- hw/cirrus_vga.c | 78 +++--- 1 files changed, 10 insertions(+), 68 deletions(-) diff --git

[RFC v2 19/20] vga: simplify vga window mmio access functions

2011-06-27 Thread Avi Kivity
Make use of the memory API's ability to satisfy multi-byte accesses via multiple single-byte accesses. We have to keep vga_mem_{read,write}b() since they're used by cirrus. Signed-off-by: Avi Kivity a...@redhat.com --- hw/cirrus_vga.c |4 +- hw/vga.c| 56

[RFC v2 16/20] cirrus: simplify mmio BAR access functions

2011-06-27 Thread Avi Kivity
Make use of the memory API's ability to satisfy multi-byte accesses via multiple single-byte accesses. Signed-off-by: Avi Kivity a...@redhat.com --- hw/cirrus_vga.c | 82 +++ 1 files changed, 10 insertions(+), 72 deletions(-) diff --git

[RFC v2 15/20] vga: convert vga and its derivatives to the memory API

2011-06-27 Thread Avi Kivity
Convert all vga memory to the memory API. Note we need to fall back to get_system_memory(), since the various buses don't pass the vga window as a memory region. Signed-off-by: Avi Kivity a...@redhat.com --- hw/cirrus_vga.c | 346 +--

Re: [RFC v2 03/20] memory: merge adjacent segments of a single memory region

2011-06-27 Thread Jan Kiszka
On 2011-06-27 15:21, Avi Kivity wrote: Simple implementations of memory routers, for example the Cirrus VGA memory banks or the 440FX PAM registers can generate adjacent memory regions which are contiguous. Detect these and merge them; this saves kvm memory slots and shortens lookup

Re: [PATCH v2 05/11] KVM: Expose a version 1 architectural PMU to guests

2011-06-27 Thread lidong chen
this patch used perf_event_create_kernel_counter function to setup event in host os. whether the count of event will calculate the part of qemu-kvm userspace, and deliver the nmi interrupt which caused by this part to guest os? thanks. 2011/6/13 Avi Kivity a...@redhat.com: Use perf_events to

Re: [RFC v2 03/20] memory: merge adjacent segments of a single memory region

2011-06-27 Thread Avi Kivity
On 06/27/2011 04:56 PM, Jan Kiszka wrote: On 2011-06-27 15:21, Avi Kivity wrote: Simple implementations of memory routers, for example the Cirrus VGA memory banks or the 440FX PAM registers can generate adjacent memory regions which are contiguous. Detect these and merge them; this saves

Re: [PATCH v2 05/11] KVM: Expose a version 1 architectural PMU to guests

2011-06-27 Thread Avi Kivity
On 06/27/2011 05:10 PM, lidong chen wrote: this patch used perf_event_create_kernel_counter function to setup event in host os. whether the count of event will calculate the part of qemu-kvm userspace, and deliver the nmi interrupt which caused by this part to guest os? There is a patch by

Re: SR-IOV and KVM?

2011-06-27 Thread Chris Friesen
On 06/24/2011 07:13 PM, Sasha Levin wrote: On Fri, 2011-06-24 at 15:10 -0600, Chris Friesen wrote: Is anyone working on SR-IOV for KVM, specifically for networking? Or is virtio good enough that it's not a pressing concern? What exactly are you missing now? Maybe it's just a documentation

KVM call agenda for June 28

2011-06-27 Thread Juan Quintela
Hi Please send in any agenda items you are interested in covering. Later, Juan. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: SR-IOV and KVM?

2011-06-27 Thread Avi Kivity
On 06/27/2011 05:15 PM, Chris Friesen wrote: Maybe it's just a documentation thing. I'm just getting into KVM and trying to figure everything out, and I don't see a step-by-step guide to configuring a host/guest system with either SR-IOV or Intel's VMDq. You can use virt-manager; it has a

Re: SR-IOV and KVM?

2011-06-27 Thread David Ahern
On 06/27/2011 02:18 AM, Troels Arvin wrote: David Ahern wrote: 82576EB and a Dell R410 are working fine for me, but my host OS is Fedora 14, not RHEL6. 82576EB is a dual-port embedded NIC? I have a quad-port PCIe card. (The 82576 which is in my R710 is a quad-port PCIe card.) Does

Re: [RFC v2 00/20] Memory API

2011-06-27 Thread Avi Kivity
On 06/27/2011 04:21 PM, Avi Kivity wrote: As expected, this is taking longer than expected, so I'm releasing something less complete than I'd have liked. Not even all of the PC machine is converted, but the difficult parts are (cirrus). It appears to work well. The major change compared to v1

Re: SR-IOV and KVM?

2011-06-27 Thread David Ahern
On 06/27/2011 08:40 AM, Avi Kivity wrote: On 06/27/2011 05:15 PM, Chris Friesen wrote: Maybe it's just a documentation thing. I'm just getting into KVM and trying to figure everything out, and I don't see a step-by-step guide to configuring a host/guest system with either SR-IOV or Intel's

Re: SR-IOV and KVM?

2011-06-27 Thread Steve Dobbelstein
Chris Friesen chris.frie...@genband.com wrote on 06/27/2011 09:15:05 AM: On Fri, 2011-06-24 at 15:10 -0600, Chris Friesen wrote: Is anyone working on SR-IOV for KVM, specifically for networking? Or is virtio good enough that it's not a pressing concern? In IBM's recent postings of results

Re: [Qemu-devel] [RFC v2 00/20] Memory API

2011-06-27 Thread Anthony Liguori
On 06/27/2011 08:21 AM, Avi Kivity wrote: As expected, this is taking longer than expected, so I'm releasing something less complete than I'd have liked. Not even all of the PC machine is converted, but the difficult parts are (cirrus). It appears to work well. The major change compared to v1

Re: [Qemu-devel] [RFC v2 00/20] Memory API

2011-06-27 Thread Avi Kivity
On 06/27/2011 06:37 PM, Anthony Liguori wrote: On 06/27/2011 08:21 AM, Avi Kivity wrote: As expected, this is taking longer than expected, so I'm releasing something less complete than I'd have liked. Not even all of the PC machine is converted, but the difficult parts are (cirrus). It

Re: [PATCH V7 2/4 net-next] skbuff: Add userspace zero-copy buffers in skb

2011-06-27 Thread Shirley Ma
Hello Dave, To support skb zero-copy, a pointer is needed to add to skb share info. Do you agree with this approach? If not, do you have any other suggestions? Thanks Shirley On Sat, 2011-05-28 at 12:23 -0700, Shirley Ma wrote: From: Shirley Ma

Re: [RFC v2 00/20] Memory API

2011-06-27 Thread Michael S. Tsirkin
On Mon, Jun 27, 2011 at 06:13:03PM +0300, Avi Kivity wrote: On 06/27/2011 04:21 PM, Avi Kivity wrote: As expected, this is taking longer than expected, so I'm releasing something less complete than I'd have liked. Not even all of the PC machine is converted, but the difficult parts are

Re: [RFC v2 00/20] Memory API

2011-06-27 Thread Avi Kivity
On 06/27/2011 06:52 PM, Michael S. Tsirkin wrote: On Mon, Jun 27, 2011 at 06:13:03PM +0300, Avi Kivity wrote: On 06/27/2011 04:21 PM, Avi Kivity wrote: As expected, this is taking longer than expected, so I'm releasing something less complete than I'd have liked. Not even all of the PC

Re: [RFC v2 00/20] Memory API

2011-06-27 Thread Michael S. Tsirkin
On Mon, Jun 27, 2011 at 06:54:05PM +0300, Avi Kivity wrote: On 06/27/2011 06:52 PM, Michael S. Tsirkin wrote: On Mon, Jun 27, 2011 at 06:13:03PM +0300, Avi Kivity wrote: On 06/27/2011 04:21 PM, Avi Kivity wrote: As expected, this is taking longer than expected, so I'm releasing

Re: [PATCH] drivers/staging/zcache: support multiple clients, prep for RAMster and KVM

2011-06-27 Thread Konrad Rzeszutek Wilk
@@ -503,15 +529,13 @@ static void tmem_pampd_destroy_all_in_ob * always flushes for simplicity. */ int tmem_put(struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index, - struct page *page) + char *data, size_t size, bool raw, int ephemeral) why not make

Re: [RFC v2 00/20] Memory API

2011-06-27 Thread Avi Kivity
On 06/27/2011 06:59 PM, Michael S. Tsirkin wrote: - bridges might also enable subtractive decoding (required for isa behind the bridge) What does that mean? subtractive decoding is a method of address decoding in which a device accepts all accesses not positively decoded by another

[PATCH 0/3] Transparent Hugepages tests v4

2011-06-27 Thread Lucas Meneghel Rodrigues
This patchset comprises tests for the Transparent memory Hugepages functionality on KVM guests. Included we have common test setup, 4 test cases (smoke, stress, defrag and swapping) and the correspondent test configuration variants on tests_base.cfg.sample. After this round of reviews, I believe

[PATCH 1/3] virt: Add Transparent Hugepages setup

2011-06-27 Thread Lucas Meneghel Rodrigues
From: Yiqiao Pu y...@redhat.com This class configures khugepaged to active mode, with functions to restore original guest configuration. Changes from v1: * Rather than a pre/post script, config is now part of the framework * No need to store configuration in files anymore to restore host

[PATCH 2/3] KVM test: Add Transparent Hugepages subtests

2011-06-27 Thread Lucas Meneghel Rodrigues
From: Yiqiao Pu y...@redhat.com Transparent hugepage test includes: 1) Smoke test and stress test Smoking test is test the transparent hugepage is used by kvm and guest. Stress test test use a parallel dd to test the stability of transparent hugepages 2) Swap test Bootup a vm and verify that it

[PATCH 3/3] Add THP test variants to tests_base.cfg.sample

2011-06-27 Thread Lucas Meneghel Rodrigues
From: Yiqiao Pu y...@redhat.com Changes from v1: * No need to use pre/post scripts anymore Changes from v2: * Put it before shutdown case Signed-off-by: Yiqiao Pu y...@redhat.com Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/tests_base.cfg.sample | 15

[PATCH 01/13] qemu-kvm: Reduce configure and Makefile.target diff to upstream

2011-06-27 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com None of those bits are still required. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- Makefile.target |2 -- configure |8 +--- 2 files changed, 1 insertions(+), 9 deletions(-) diff --git a/Makefile.target b/Makefile.target index

[PATCH 02/13] qemu-kvm: Drop some no longer needed #ifdefs

2011-06-27 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Not a complete cleanup, other code has more subtle dependencies. Will be resolved during upstream merge. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/device-assignment.c | 52 ++- kvm-all.c

[PATCH 00/13] qemu-kvm: device assignment cleanups and upstream diff reductions

2011-06-27 Thread Jan Kiszka
This series basically consists of two halves. The first one applies a few smaller cleanups to qemu-kvm to improve similarity with upstream. This includes the recently discussed removal of -enable-nesting. The second half starts with two device assignment fixes and then applies some refactorings,

[PATCH 03/13] qemu-kvm: Drop -enable-nesting command line switch

2011-06-27 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Link it is already handling in upstream, this feature can be controlled via -cpu ...+/-svm. CC: Joerg Roedel joerg.roe...@amd.com Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- qemu-kvm.h |7 --- qemu-options.hx |2 --

[PATCH 04/13] qemu-kvm: Remove eventfd compat header

2011-06-27 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com No longer used. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- compat/sys/eventfd.h | 13 - 1 files changed, 0 insertions(+), 13 deletions(-) delete mode 100644 compat/sys/eventfd.h diff --git a/compat/sys/eventfd.h

[PATCH 08/13] pci-assign: Update legacy interrupts only if used

2011-06-27 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Don't mess with assign_intx on devices that are in MSI or MSI-X mode, it would corrupt their interrupt routing. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/device-assignment.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-)

[PATCH 06/13] qemu-kvm: Drop or replace useless device-assignment.h inclusions

2011-06-27 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/pc.c |1 - hw/pci-hotplug.c |1 - vl.c |2 +- 3 files changed, 1 insertions(+), 3 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index c4e3f26..c0a88e1 100644 ---

[PATCH 07/13] pci-assign: Fix kvm_deassign_irq handling in assign_irq

2011-06-27 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Always clear AssignedDevice::irq_requested_type after calling kvm_deassign_irq. Moreover, drop the obviously incorrect exclusion when reporting related errors - if irq_requested_type is non-zero, deassign must not fail. Signed-off-by: Jan Kiszka

[PATCH 11/13] pci-assign: Track MSI/MSI-X capability position, clean up related code

2011-06-27 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Store the MSI and MSI-X capability position in the same fields the QEMU core uses as well. Although we still open-code MSI support, this does not cause conflicts. Instead, it allow us to drop config space searches from assigned_device_pci_cap_write_config.

[PATCH 09/13] pci-assign: Drop libpci header dependency

2011-06-27 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com All constants are now available through QEMU. Also drop the upstream diff of pci_regs.h, it cannot clash with libpci anymore. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- configure | 21 - hw/device-assignment.c

[PATCH 05/13] qemu-kvm: Remove qemu_ram_unmap

2011-06-27 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Upstream gained identical qemu_ram_free_from_ptr. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- cpu-common.h |1 - exec.c | 13 - hw/device-assignment.c |2 +- 3 files changed, 1 insertions(+), 15

[PATCH 10/13] pci-assign: Refactor calc_assigned_dev_id

2011-06-27 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Make calc_assigned_dev_id pick up all required bits from the device passed to it. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/device-assignment.c | 25 + hw/device-assignment.h |6 +++--- 2 files changed, 12

[PATCH 13/13] qemu-kvm: Resolve PCI upstream diffs

2011-06-27 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Device assignment no longer peeks into config_map, so we can drop all the related changes and sync the PCI core with upstream. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/pci.c | 29 +++-- hw/pci.h |8 ++-- 2

[PATCH 12/13] pci-assign: Generic config space access management

2011-06-27 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com This drastically simplifies config space access management: Instead of coding various range checks and merging bits, set up two access control bitmaps. One defines, which bits can be directly read from the device, the other allows direct write to the

Re: [Qemu-devel] [RFC v2 00/20] Memory API

2011-06-27 Thread Anthony Liguori
On 06/27/2011 10:59 AM, Michael S. Tsirkin wrote: On Mon, Jun 27, 2011 at 06:54:05PM +0300, Avi Kivity wrote: On 06/27/2011 06:52 PM, Michael S. Tsirkin wrote: - bridges might also enable subtractive decoding (required for isa behind the bridge) What does that mean? subtractive decoding

Re: [PATCH 12/13] pci-assign: Generic config space access management

2011-06-27 Thread Michael S. Tsirkin
On Mon, Jun 27, 2011 at 08:19:55PM +0200, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com This drastically simplifies config space access management: Instead of coding various range checks and merging bits, set up two access control bitmaps. One defines, which bits can be directly

Re: [PATCH 12/13] pci-assign: Generic config space access management

2011-06-27 Thread Alex Williamson
On Mon, 2011-06-27 at 20:19 +0200, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com This drastically simplifies config space access management: Instead of coding various range checks and merging bits, set up two access control bitmaps. One defines, which bits can be directly read

Re: [PATCH V7 2/4 net-next] skbuff: Add userspace zero-copy buffers in skb

2011-06-27 Thread David Miller
From: Shirley Ma mashi...@us.ibm.com Date: Mon, 27 Jun 2011 08:45:10 -0700 To support skb zero-copy, a pointer is needed to add to skb share info. Do you agree with this approach? If not, do you have any other suggestions? I really can't form an opinion unless I am shown the complete

Re: [PATCH -V3] tools/kvm/9p: Add encode/decode routines for protocol data

2011-06-27 Thread Sasha Levin
On Mon, 2011-06-27 at 15:57 +0530, Aneesh Kumar K.V wrote: The protocol data is in little-endian format. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com What about the suggestion regarding using a pipe in the pdu read/write functions? --- tools/kvm/Makefile

Re: [PATCH] kvm_vm: add build/lib to LD_LIBRARY_PATH for qemu_cmd

2011-06-27 Thread Lucas Meneghel Rodrigues
On Sun, Jun 26, 2011 at 4:55 PM, Alon Levy al...@redhat.com wrote: build/lib can contain libspice-server.so built from git. ---  client/virt/kvm_vm.py |    3 +++  1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/client/virt/kvm_vm.py b/client/virt/kvm_vm.py index

Re: [PATCH] kvm_installer: introduce GitRepo helper class

2011-06-27 Thread Lucas Meneghel Rodrigues
On Sun, Jun 26, 2011 at 4:55 PM, Alon Levy al...@redhat.com wrote: Will allow adding further git repositories more easily later. ---  client/virt/kvm_installer.py |  163 ++---  1 files changed, 72 insertions(+), 91 deletions(-) diff --git

Re: [PATCH] kvm_vm: add build/lib to LD_LIBRARY_PATH for qemu_cmd

2011-06-27 Thread Lucas Meneghel Rodrigues
Here are the commits from your patchset with the small corrections: http://autotest.kernel.org/changeset/5456 http://autotest.kernel.org/changeset/5457 http://autotest.kernel.org/changeset/5458 http://autotest.kernel.org/changeset/5459 Let's figure out how to accomplish what you need to do next.

Re: [PATCH v2 05/11] KVM: Expose a version 1 architectural PMU to guests

2011-06-27 Thread lidong chen
but i didn't find intel cpu support exclude_host attribute. and this method depend on the support of cpu. i find the implement of Xenoprof, which inject the nmi interrupt in nmi_callback. maybe we can inject the nmi interrupt like this: static void vmx_complete_atomic_exit(struct vcpu_vmx *vmx)

[PATCH 0/3] Add softlockup tests

2011-06-27 Thread Lucas Meneghel Rodrigues
Worked out on issues pointed out at the first code review. What needs to be done: 1) On softlockup.py, after the wait period is over, collect the logs and analyze them programatically, so we can determine whether the test has passed or failed. Lucas Meneghel Rodrigues (3): KVM test: Adding

[PATCH 1/3] KVM test: Adding heartbeat monitor for soft lockup tests

2011-06-27 Thread Lucas Meneghel Rodrigues
The basic setup used for testing for soft lockup and clock drift issues amongst guests in our environment was to generate guest and host cpu load to induce high scheduling latencies for guest vcpus. Guests were then monitored from a seperate machine using a heartbeat monitor that records periodic

[PATCH 2/3] Virt: Adding softlockup subtest

2011-06-27 Thread Lucas Meneghel Rodrigues
This test conists in copying the heartbeat monitor to guests and then putting the guest to stress with the stress program. If any soft lockups are detected, the monitor will detect it. Signed-off-by: Pradeep K Surisetty psuri...@linux.vnet.ibm.com --- client/virt/tests/softlockup.py | 80

[PATCH 3/3] KVM test: Adding softlockup tests to tests_base.cfg.sample

2011-06-27 Thread Lucas Meneghel Rodrigues
Signed-off-by: Pradeep K Surisetty psuri...@linux.vnet.ibm.com --- client/tests/kvm/tests_base.cfg.sample | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests_base.cfg.sample b/client/tests/kvm/tests_base.cfg.sample index 4db011d..31ea0d6