Re: [PATCH 0/13] Hypervisor-mode KVM on POWER7

2011-05-19 Thread Alexander Graf
On 19.05.2011, at 07:22, Paul Mackerras wrote: On Tue, May 17, 2011 at 02:42:08PM +0300, Avi Kivity wrote: On 05/17/2011 02:38 PM, Alexander Graf wrote: What would be the path for these patches to get upstream? Would this stuff normally go through Avi's tree? There is a bit of a

Re: [PATCH 13/13] kvm/powerpc: Allow book3s_hv guests to use SMT processor modes

2011-05-19 Thread Paul Mackerras
On Tue, May 17, 2011 at 01:36:26PM +0200, Alexander Graf wrote: Just so I understand the scheme: One vcpu needs to go to MMU mode in KVM, it then sends IPIs to stop the other threads and finally we return from this wait here? Actually, if one thread needs to get the other threads out of the

[Patch] kvm tools: build rbtree.o from source

2011-05-19 Thread Amerigo Wang
Don't link the rbtree.o from kernel object tree, build rbtree.o from source by ourselves. Reported-by: Ingo Molnar mi...@elte.hu Signed-off-by: WANG Cong amw...@redhat.com --- diff --git a/tools/kvm/Makefile b/tools/kvm/Makefile index 30f0f61..8cfa9a2 100644 --- a/tools/kvm/Makefile +++

[PATCH] KVM Test: Correct file_transfer import link.

2011-05-19 Thread fyang
From: Feng Yang fy...@redhat.com modified: client/tests/kvm/tests/set_link.py modified: client/virt/tests/nic_promisc.py modified: client/virt/tests/nicdriver_unload.py Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/tests/set_link.py|2 +-

Re: [PATCH 14/18] virtio: add api for delayed callbacks

2011-05-19 Thread Michael S. Tsirkin
On Mon, May 16, 2011 at 04:43:21PM +0930, Rusty Russell wrote: On Sun, 15 May 2011 15:48:18 +0300, Michael S. Tsirkin m...@redhat.com wrote: On Mon, May 09, 2011 at 03:27:33PM +0930, Rusty Russell wrote: On Wed, 4 May 2011 23:52:33 +0300, Michael S. Tsirkin m...@redhat.com wrote:

Re: [PATCH 09/18] virtio: use avail_event index

2011-05-19 Thread Michael S. Tsirkin
On Wed, May 18, 2011 at 09:49:42AM +0930, Rusty Russell wrote: On Tue, 17 May 2011 09:10:31 +0300, Michael S. Tsirkin m...@redhat.com wrote: Well one can imagine a driver doing: while (virtqueue_get_buf()) { virtqueue_add_buf() } virtqueue_kick() which

Re: [Patch] kvm tools: build rbtree.o from source

2011-05-19 Thread Ingo Molnar
* Amerigo Wang amw...@redhat.com wrote: Don't link the rbtree.o from kernel object tree, build rbtree.o from source by ourselves. Reported-by: Ingo Molnar mi...@elte.hu Signed-off-by: WANG Cong amw...@redhat.com Nice, thanks! Acked-by: Ingo Molnar mi...@elte.hu Ingo -- To

Re: How to diagnose memory leak in kvm-qemu-0.14.0?

2011-05-19 Thread Stefan Hajnoczi
On Wed, May 18, 2011 at 5:44 PM, Steve Kemp st...@bytemark.co.uk wrote:  I'm running the most recent release of KVM, version 0.14.0  on a host kernel 2.6.32.15, and seem to be able to trigger  a leak of memory pretty easily.  Inside a guest the following one-liner will cause the KVM  

Re: How to diagnose memory leak in kvm-qemu-0.14.0?

2011-05-19 Thread Stefan Hajnoczi
On Thu, May 19, 2011 at 9:40 AM, Stefan Hajnoczi stefa...@gmail.com wrote: On Wed, May 18, 2011 at 5:44 PM, Steve Kemp st...@bytemark.co.uk wrote: If you have SystemTap installed you may wish to use the dtrace backend instead of simple.  You can then use SystemTap scripts on the probes.  

Re: [PATCH 2/2 V2] kvm tools: Add virtio-9p

2011-05-19 Thread Sasha Levin
On Thu, 2011-05-19 at 09:02 +0400, Cyrill Gorcunov wrote: +} __attribute__((aligned (8))); + Hi Sasha, could you enlighten me, why do we need __attribute__((aligned (8))) here at all? Probably packed are to be used instead? Yup, You're right. -- Sasha. -- To unsubscribe from this

[PATCH] KVM Test: Switch current working folder in unattended_install.py.

2011-05-19 Thread fyang
From: Feng Yang fy...@redhat.com Current working folder for unattended_install_config = UnattendedInstallConfig(test, params) unattended_install_config.setup() must be kvm folder. Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/tests/unattended_install.py |3 +++ 1

Re: [PATCH] kvm tools: Default guest cpu count to host cpu count

2011-05-19 Thread Asias He
On 05/19/2011 03:56 AM, Sasha Levin wrote: If user haven't specified cpu count for the guest, use the amount of online cpus on the host. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- tools/kvm/kvm-run.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff

Re: How to diagnose memory leak in kvm-qemu-0.14.0?

2011-05-19 Thread Steve Kemp
On Thu May 19, 2011 at 09:40:41 +0100, Stefan Hajnoczi wrote: You are exercising both networking and storage. Have you cut the test down to just wget vs cp/rm? Both seem to leak; but the cp/rm leaks more. Which suggests to me that we're seeing a leak in the virtio block handling. Also

Re: How to diagnose memory leak in kvm-qemu-0.14.0?

2011-05-19 Thread Steve Kemp
On Thu May 19, 2011 at 09:40:41 +0100, Stefan Hajnoczi wrote: You are exercising both networking and storage. Have you cut the test down to just wget vs cp/rm? Also why the sleep 10? I'm 99% certain the leak is coming from the virtio block device now. A simple test is: wget

[PATCH] kvm tools: Exit properly on SMP guests

2011-05-19 Thread Sasha Levin
When shutting down SMP guests only VCPU #0 will receive a KVM_EXIT_SHUTDOWN. Waiting for all VCPU threads to exit causes them to hang. Instead, notify all VCPU threads once VCPU #0 thread is terminated so they could also stop properly. Signed-off-by: Sasha Levin levinsasha...@gmail.com ---

Disconnected broadcast domains

2011-05-19 Thread Eduardo Grosclaude
Hello, Please help! I am using KVM and virt-manager as shipped with CentOS 5.6. I need to deploy a particular topology and find what I think some strange behaviour. Please clarify where am I wrong: - I want to simulate two virtual switches to connect my VMs to. I have defined a second virtual

[RFC v1] Memory API

2011-05-19 Thread Avi Kivity
The following patch includes a memory API proposal (without implementation). Subject to review comments and endless discussions, my plans are to post a v2 with an implementation and partial conversion, and v3 with full conversion and elimination of cpu_register_physical_memory(). Avi Kivity (1):

[RFC v1] Add declarations for hierarchical memory region API

2011-05-19 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

[PATCH RFC] virtio_ring: fix delayed enable cb implementation

2011-05-19 Thread Michael S. Tsirkin
Fix some signed/assigned mistakes in virtqueue_enable_cb_delayed by using u16 math all over. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- I'll put this on my v1 branch as well @@ -398,7 +397,7 @@ EXPORT_SYMBOL_GPL(virtqueue_enable_cb); bool virtqueue_enable_cb_delayed(struct

Re: [PATCH] kvm tools: Exit properly on SMP guests

2011-05-19 Thread Ingo Molnar
* Sasha Levin levinsasha...@gmail.com wrote: +++ b/tools/kvm/include/kvm/kvm.h @@ -11,6 +11,8 @@ #define KVM_32BIT_GAP_SIZE (512 20) #define KVM_32BIT_GAP_START ((1ULL 32) - KVM_32BIT_GAP_SIZE) +#define SIGKVMEXIT (SIGUSR1 + 2) Please preserve the vertical alignment that already

Re: [PATCH] kvm tools: Default guest cpu count to host cpu count

2011-05-19 Thread David Ahern
On 05/18/11 13:56, Sasha Levin wrote: If user haven't specified cpu count for the guest, use the amount of online cpus on the host. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- tools/kvm/kvm-run.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git

Re: [Qemu-devel] [RFC v1] Add declarations for hierarchical memory region API

2011-05-19 Thread Alex Williamson
On Thu, 2011-05-19 at 10:12 -0400, Avi Kivity wrote: 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,

Re: [PATCH] kvm tools: Default guest cpu count to host cpu count

2011-05-19 Thread Cyrill Gorcunov
On 05/19/2011 11:04 PM, David Ahern wrote: On 05/18/11 13:56, Sasha Levin wrote: If user haven't specified cpu count for the guest, use the amount of online cpus on the host. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- tools/kvm/kvm-run.c |9 ++--- 1 files changed, 6

Re: [RFC v1] Add declarations for hierarchical memory region API

2011-05-19 Thread Jan Kiszka
On 2011-05-19 16:12, Avi Kivity wrote: +/* Sets an offset to be added to MemoryRegionOps callbacks. */ +void memory_region_set_offset(MemoryRegion *mr, target_phys_addr_t offset); Please mark this as a legacy helper, ideally to be removed after the complete conversion to this API. During that

Re: [PATCH V5 2/6 net-next] netdevice.h: Add zero-copy flag in netdevice

2011-05-19 Thread Shirley Ma
On Wed, 2011-05-18 at 10:00 -0700, Shirley Ma wrote: On Wed, 2011-05-18 at 19:51 +0300, Michael S. Tsirkin wrote: Yes, I agree. I think for tcpdump, we really need to copy the data anyway, to avoid guest changing it in between. So we do that and then use the copy everywhere,

Re: [PATCH] kvm tools: Default guest cpu count to host cpu count

2011-05-19 Thread Cyrill Gorcunov
On 05/19/2011 11:08 PM, Cyrill Gorcunov wrote: ... What prevents nr_online_cpus from being greater than KVM_NR_CPUS? Since that latter is a #define, might want to change 'else if' to if there. David Good catch! We should add a constraint here and limit it to KVM_NR_CPUS. Heh, actually

Re: [Qemu-devel] [RFC v1] Add declarations for hierarchical memory region API

2011-05-19 Thread Anthony Liguori
On 05/19/2011 09:12 AM, Avi Kivity wrote: 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

Re: [Qemu-devel] [RFC v1] Add declarations for hierarchical memory region API

2011-05-19 Thread Stefan Weil
Am 19.05.2011 16:12, schrieb 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

Re: [RFC v1] Add declarations for hierarchical memory region API

2011-05-19 Thread Stefan Hajnoczi
On Thu, May 19, 2011 at 3:12 PM, Avi Kivity a...@redhat.com wrote: +struct MemoryRegion { +    /* All fields are private - violators will be prosecuted */ +    const MemoryRegionOps *ops; +    MemoryRegion *parent; In the case where a region is aliased (mapped twice into the address space at

[PATCHv2 06/14] virtio: add api for delayed callbacks

2011-05-19 Thread Michael S. Tsirkin
Add an API that tells the other side that callbacks should be delayed until a lot of work has been done. Implement using the new event_idx feature. Note: it might seem advantageous to let the drivers ask for a callback after a specific capacity has been reached. However, as a single head can free

[PATCHv2 00/14] virtio and vhost-net performance enhancements

2011-05-19 Thread Michael S. Tsirkin
OK, here is the large patchset that implements the virtio spec update that I sent earlier (the spec itself needs a minor update, will send that out too next week, but I think we are on the same page here already). It supercedes the PUBLISH_USED_IDX patches I sent out earlier. What will follow

[PATCHv2 01/14] virtio: event index interface

2011-05-19 Thread Michael S. Tsirkin
Define a new feature bit for the guest and host to utilize an event index (like Xen) instead if a flag bit to enable/disable interrupts and kicks. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- include/linux/virtio_ring.h | 15 ++- 1 files changed, 14 insertions(+), 1

[PATCHv2 02/14] virtio ring: inline function to check for events

2011-05-19 Thread Michael S. Tsirkin
With the new used_event and avail_event and features, both host and guest need similar logic to check whether events are enabled, so it helps to put the common code in the header. Note that Xen has similar logic for notification hold-off in include/xen/interface/io/ring.h with req_event and

[PATCHv2 03/14] virtio_ring: support event idx feature

2011-05-19 Thread Michael S. Tsirkin
Support for the new event idx feature: 1. When enabling interrupts, publish the current avail index value to the host to get interrupts on the next update. 2. Use the new avail_event feature to reduce the number of exits from the guest. Simple test with the simulator: [virtio]# time

[PATCHv2 05/14] virtio_test: support event index

2011-05-19 Thread Michael S. Tsirkin
Add ability to test the new event idx feature, enable by default. --- tools/virtio/virtio_test.c | 19 +-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/tools/virtio/virtio_test.c b/tools/virtio/virtio_test.c index df0c6d2..74d3331 100644 ---

[PATCHv2 07/14] virtio_net: delay TX callbacks

2011-05-19 Thread Michael S. Tsirkin
Ask for delayed callbacks on TX ring full, to give the other side more of a chance to make progress. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- drivers/net/virtio_net.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/virtio_net.c

[PATCHv2 08/14] virtio_ring: Add capacity check API

2011-05-19 Thread Michael S. Tsirkin
From: Shirley Ma mashi...@us.ibm.com Signed-off-by: Shirley Ma x...@us.ibm.com Signed-off-by: Michael S. Tsirkin m...@redhat.com --- drivers/virtio/virtio_ring.c |8 include/linux/virtio.h |5 + 2 files changed, 13 insertions(+), 0 deletions(-) diff --git

[PATCHv2 09/14] virtio_net: fix TX capacity checks using new API

2011-05-19 Thread Michael S. Tsirkin
virtio net uses the number of sg entries to check for TX ring capacity freed. But this gives incorrect results when indirect buffers are used. Use the new capacity API instead. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- drivers/net/virtio_net.c |9 - 1 files changed, 4

[PATCHv2 10/14] virtio_net: limit xmit polling

2011-05-19 Thread Michael S. Tsirkin
Current code might introduce a lot of latency variation if there are many pending bufs at the time we attempt to transmit a new one. This is bad for real-time applications and can't be good for TCP either. Free up just enough to both clean up all buffers eventually and to be able to xmit the next

[PATCHv2 11/14] virtio: don't delay avail index update

2011-05-19 Thread Michael S. Tsirkin
Update avail index immediately instead of upon kick: for virtio-net RX this helps parallelism with the host. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- drivers/virtio/virtio_ring.c | 28 +++- 1 files changed, 19 insertions(+), 9 deletions(-) diff --git

[PATCHv2 13/14] virtio_test: update for 64 bit features

2011-05-19 Thread Michael S. Tsirkin
Extend the virtio_test tool so it can work with 64 bit features. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- tools/virtio/virtio_test.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/virtio/virtio_test.c b/tools/virtio/virtio_test.c index

[PATCHv2 12/14] virtio: 64 bit features

2011-05-19 Thread Michael S. Tsirkin
Extend features to 64 bit so we can use more transport bits. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- drivers/lguest/lguest_device.c |8 drivers/s390/kvm/kvm_virtio.c |8 drivers/virtio/virtio.c|8 drivers/virtio/virtio_pci.c| 34

[PATCHv2 14/14] vhost: fix 64 bit features

2011-05-19 Thread Michael S. Tsirkin
Update vhost_has_feature to make it work correctly for bit 32. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- drivers/vhost/vhost.h |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index 8e03379..64889d2 100644

[PATCHv2 04/14] vhost: support event index

2011-05-19 Thread Michael S. Tsirkin
Support the new event index feature. When acked, utilize it to reduce the # of interrupts sent to the guest. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- drivers/vhost/net.c | 12 ++-- drivers/vhost/test.c |6 +- drivers/vhost/vhost.c | 138

Re: [PATCHv2 00/14] virtio and vhost-net performance enhancements

2011-05-19 Thread David Miller
From: Michael S. Tsirkin m...@redhat.com Date: Fri, 20 May 2011 02:10:07 +0300 Rusty, I think it will be easier to merge vhost and virtio bits in one go. Can it all go in through your tree (Dave in the past acked sending a very similar patch through you so should not be a problem)? And in

[PATCHv2 0/2] virtio-net: 64 bit features, event index

2011-05-19 Thread Michael S. Tsirkin
OK, here's a patch that implements the virtio spec update that I sent earlier. It supercedes the PUBLISH_USED_IDX patches I sent out earlier. Support is added in both userspace and vhost-net. If you see issues or are just curious, you can turn the new feature off. For example: -global

[PATCHv2 1/2] virtio/vhost: support 64 bit features

2011-05-19 Thread Michael S. Tsirkin
Add support for extended feature bits: up to 64 bit. Only virtio-pci is actually implemented, s390 and syborg are stubbed out (and untested). Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/qdev-properties.c | 39 hw/qdev.h | 10 +

[PATCHv2 2/2] virtio+vhost: event idx feature

2011-05-19 Thread Michael S. Tsirkin
Add support for used_event feature, and utilize it to reduce the number of interrupts and exits for the guest. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/vhost_net.c |6 hw/virtio.c| 92 ++- hw/virtio.h|9

Re: [PATCH V5 2/6 net-next] netdevice.h: Add zero-copy flag in netdevice

2011-05-19 Thread Michael S. Tsirkin
On Thu, May 19, 2011 at 12:42:49PM -0700, Shirley Ma wrote: On Wed, 2011-05-18 at 10:00 -0700, Shirley Ma wrote: On Wed, 2011-05-18 at 19:51 +0300, Michael S. Tsirkin wrote: Yes, I agree. I think for tcpdump, we really need to copy the data anyway, to avoid guest changing it in

Re: [PATCH 2/2] kvm tools: Add virtio-9p

2011-05-19 Thread Venkateswararao Jujjuri
On 05/18/2011 02:05 AM, Sasha Levin wrote: On Tue, 2011-05-17 at 20:18 -0500, Eric Van Hensbergen wrote: On Tue, May 17, 2011 at 3:27 PM, Sasha Levinlevinsasha...@gmail.com wrote: On Tue, 2011-05-17 at 22:08 +0300, Sasha Levin wrote: 'kvm_9p' isn't created as a device under /dev, it's just a

Re: Video card passthrough success

2011-05-19 Thread Luke-Jr
Finally decided to see just how much of the Radeon was working (eg, if it was *just* OpenCL or not), and I am happy to confirm that both video output and OpenGL acceleration are fully functional inside KVM. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message

[PATCH] KVM test: physical_resources_check: Fixing error message

2011-05-19 Thread Lucas Meneghel Rodrigues
Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/tests/physical_resources_check.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/tests/physical_resources_check.py b/client/tests/kvm/tests/physical_resources_check.py index

Re: [PATCH RFC] virtio_net: fix patch: virtio_net: limit xmit polling

2011-05-19 Thread Rusty Russell
On Thu, 19 May 2011 01:01:25 +0300, Michael S. Tsirkin m...@redhat.com wrote: The patch virtio_net: limit xmit polling got the logic reversed: it polled while we had capacity not while ring was empty. Fix it up and clean up a bit by using a for loop. Signed-off-by: Michael S. Tsirkin

Re: [PATCH 0/13] Hypervisor-mode KVM on POWER7

2011-05-19 Thread Alexander Graf
On 19.05.2011, at 07:22, Paul Mackerras wrote: On Tue, May 17, 2011 at 02:42:08PM +0300, Avi Kivity wrote: On 05/17/2011 02:38 PM, Alexander Graf wrote: What would be the path for these patches to get upstream? Would this stuff normally go through Avi's tree? There is a bit of a

Re: [PATCH 01/13] powerpc/e500: Save SPEFCSR in flush_spe_to_thread()

2011-05-19 Thread Kumar Gala
On May 17, 2011, at 6:35 PM, Scott Wood wrote: From: yu liu yu@freescale.com giveup_spe() saves the SPE state which is protected by MSR[SPE]. However, modifying SPEFSCR does not trap when MSR[SPE]=0. And since SPEFSCR is already saved/restored in _switch(), not all the callers want to

Re: [PATCH 02/13] powerpc/e500: SPE register saving: take arbitrary struct offset

2011-05-19 Thread Kumar Gala
On May 17, 2011, at 6:36 PM, Scott Wood wrote: Previously, these macros hardcoded THREAD_EVR0 as the base of the save area, relative to the base register passed. This base offset is now passed as a separate macro parameter, allowing reuse with other SPE save areas, such as used by KVM.

Re: [PATCH] KVM: PPC: fix partial application of exit timing in ticks

2011-05-19 Thread Alexander Graf
On 05/18/2011 01:26 AM, Stuart Yoder wrote: When http://www.spinics.net/lists/kvm-ppc/msg02664.html was applied to produce commit b51e7aa7ed6d8d134d02df78300ab0f91cfff4d2, the removal of the conversion in add_exit_timing was left out. Thanks, applied to kvm-ppc-next. Alex -- To unsubscribe

Re: [PATCH 01/13] powerpc/e500: Save SPEFCSR in flush_spe_to_thread()

2011-05-19 Thread Alexander Graf
On 05/19/2011 08:04 AM, Kumar Gala wrote: On May 17, 2011, at 6:35 PM, Scott Wood wrote: From: yu liuyu@freescale.com giveup_spe() saves the SPE state which is protected by MSR[SPE]. However, modifying SPEFSCR does not trap when MSR[SPE]=0. And since SPEFSCR is already saved/restored in

Re: [PATCH 03/13] KVM: PPC: booke: use shadow_msr

2011-05-19 Thread Alexander Graf
On 05/18/2011 01:40 AM, Scott Wood wrote: BKeep the guest MSR and the guest-mode true MSR separate, rather than Bkeep? modifying the guest MSR on each guest entry to produce a true MSR. Any bits which should be modified based on guest MSR must be explicitly propagated from

Re: [PATCH 09/13] KVM: PPC: e500: enable magic page

2011-05-19 Thread Alexander Graf
On 05/18/2011 01:42 AM, Scott Wood wrote: This is a shared page used for paravirtualization. It is always present in the guest kernel's effective address space at the address indicated by the hypercall that enables it. The physical address specified by the hypercall is not used, as e500 does

Re: Patching guest kernel code for better performance from HOST

2011-05-19 Thread Dushyant Bansal
On Monday 09 May 2011 04:08 PM, Alexander Graf wrote: On 09.05.2011, at 12:34, Dushyant Bansal wrote: On Sunday 08 May 2011 02:22 AM, Alexander Graf wrote: On 07.05.2011, at 22:32, Dushyant Bansal wrote: Hi, On patching 'mfmsr' instruction with 'lwz', guest exits when it tries to execute

Re: [PATCH 11/13] KVM: PPC: e500: Add shadow PID support

2011-05-19 Thread Alexander Graf
On 05/18/2011 01:42 AM, Scott Wood wrote: From: Liu Yuyu@freescale.com This patch utilize PID1 to map guest ID to shadow ID, so that we can combine all needs to invalidate host TLB together, and therefor reduce the frequency of calling _tlbia(). Signed-off-by: Liu Yuyu@freescale.com

Re: [PATCH 13/13] KVM: PPC: e500: MMU API

2011-05-19 Thread Alexander Graf
On 05/18/2011 01:42 AM, Scott Wood wrote: This implements a shared-memory API for giving Qemu access to the guest's TLB. Signed-off-by: Scott Woodscottw...@freescale.com --- Documentation/kvm/api.txt | 79 +++- arch/powerpc/include/asm/kvm.h | 35 +++

Re: [PATCH 13/13] KVM: PPC: e500: MMU API

2011-05-19 Thread Scott Wood
On Thu, 19 May 2011 16:10:48 +0200 Alexander Graf ag...@suse.de wrote: On 05/18/2011 01:42 AM, Scott Wood wrote: +For mmu types KVM_MMU_FSL_BOOKE_NOHV and KVM_MMU_FSL_BOOKE_HV: Can we rename those KVM_MMU_BOOKE_206_NOHV and KVM_MMU_BOOKE_206_HV? Same for the function names. It's just

Re: [PATCH 03/13] KVM: PPC: booke: use shadow_msr

2011-05-19 Thread Scott Wood
On Thu, 19 May 2011 12:05:57 +0200 Alexander Graf ag...@suse.de wrote: On 05/18/2011 01:40 AM, Scott Wood wrote: BKeep the guest MSR and the guest-mode true MSR separate, rather than Bkeep? Doh. diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index 8462b3a..9810010

Re: [PATCH 13/13] KVM: PPC: e500: MMU API

2011-05-19 Thread Alexander Graf
On 19.05.2011, at 18:28, Scott Wood wrote: On Thu, 19 May 2011 16:10:48 +0200 Alexander Graf ag...@suse.de wrote: On 05/18/2011 01:42 AM, Scott Wood wrote: +For mmu types KVM_MMU_FSL_BOOKE_NOHV and KVM_MMU_FSL_BOOKE_HV: Can we rename those KVM_MMU_BOOKE_206_NOHV and

Re: [PATCH 13/13] KVM: PPC: e500: MMU API

2011-05-19 Thread Scott Wood
On Thu, 19 May 2011 19:37:05 +0200 Alexander Graf ag...@suse.de wrote: On 19.05.2011, at 18:28, Scott Wood wrote: On Thu, 19 May 2011 16:10:48 +0200 Alexander Graf ag...@suse.de wrote: On 05/18/2011 01:42 AM, Scott Wood wrote: +For mmu types KVM_MMU_FSL_BOOKE_NOHV and

Re: [PATCH 11/13] KVM: PPC: e500: Add shadow PID support

2011-05-19 Thread Scott Wood
On Thu, 19 May 2011 15:18:30 +0200 Alexander Graf ag...@suse.de wrote: On 05/18/2011 01:42 AM, Scott Wood wrote: +static inline int local_sid_setup_one(struct id *entry) +{ + unsigned long sid; + int ret = -1; + + sid = ++(__get_cpu_var(pcpu_last_used_sid)); + if