[Bug 47451] need to re-load driver in guest to make a hot-plug VF work

2012-09-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=47451 --- Comment #4 from Jay Ren yongjie@intel.com 2012-09-28 06:07:50 --- (In reply to comment #3) (In reply to comment #2) (In reply to comment #1) Can we narrow down the kvm.git commit range at all? The one provided is over 12k

Re: [PATCH RFC 0/2] kvm: Improving undercommit,overcommit scenarios in PLE handler

2012-09-28 Thread Raghavendra K T
On 09/28/2012 11:15 AM, H. Peter Anvin wrote: On 09/27/2012 10:38 PM, Raghavendra K T wrote: + +bool kvm_overcommitted() +{ This better not be C... I think you meant I should have had like kvm_overcommitted(void) and (different function name perhaps) or is it the body of function? --

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-09-28 Thread Raghavendra K T
On 09/28/2012 02:37 AM, Jiannan Ouyang wrote: On Thu, Sep 27, 2012 at 4:50 AM, Avi Kivity a...@redhat.com mailto:a...@redhat.com wrote: On 09/25/2012 04:43 PM, Jiannan Ouyang wrote: I've actually implemented this preempted_bitmap idea. Interesting, please share the code if you

Re: [PATCH] virtio-blk: Disable callback in virtblk_done()

2012-09-28 Thread Rusty Russell
Asias He as...@redhat.com writes: I forgot about the cool hack which MST put in to defer event updates using disable_cb/enable_cb. Hmm, are you talking about virtqueue_enable_cb_delayed()? Just the fact that virtqueue_disable_cb() prevents updates of used_index, and then we do the update in

Re: [PATCH] virtio-blk: Disable callback in virtblk_done()

2012-09-28 Thread Asias He
On 09/28/2012 02:08 PM, Rusty Russell wrote: Asias He as...@redhat.com writes: I forgot about the cool hack which MST put in to defer event updates using disable_cb/enable_cb. Hmm, are you talking about virtqueue_enable_cb_delayed()? Just the fact that virtqueue_disable_cb() prevents

Re: vga passthrough // questions about pci passthrough

2012-09-28 Thread Jan Kiszka
On 2012-09-27 21:18, Alex Williamson wrote: On Thu, 2012-09-27 at 20:43 +0200, Martin Wolf wrote: thank you for the information. i will try what you mentioned... do you have some additional information about rebooting a VM with a passed through videocard? (amd / ati 7870) I don't. Is

Re: Re: [RFC v2 PATCH 04/21] x86: Avoid RCU warnings on slave CPUs

2012-09-28 Thread Tomoki Sekiyama
Hi Paul, Thank you for your comments, and sorry for my late reply. On 2012/09/21 2:34, Paul E. McKenney wrote: On Thu, Sep 06, 2012 at 08:27:40PM +0900, Tomoki Sekiyama wrote: Initialize rcu related variables to avoid warnings about RCU usage while slave CPUs is running specified functions.

Re: [PATCH] virtio-blk: Disable callback in virtblk_done()

2012-09-28 Thread Michael S. Tsirkin
On Thu, Sep 27, 2012 at 09:40:03AM +0930, Rusty Russell wrote: I forgot about the cool hack which MST put in to defer event updates using disable_cb/enable_cb. I considered sticking some invalid value in event index on disable but in my testing it did not seem to give any gain, and knowing

Re: [PATCH RFC 0/2] kvm: Improving undercommit,overcommit scenarios in PLE handler

2012-09-28 Thread Peter Zijlstra
On Fri, 2012-09-28 at 11:08 +0530, Raghavendra K T wrote: Peter, Can I post your patch with your from/sob.. in V2? Please let me know.. Yeah I guess ;-) -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info

RE: [PATCH v4] kvm/fpu: Enable fully eager restore kvm FPU

2012-09-28 Thread Hao, Xudong
-Original Message- From: Avi Kivity [mailto:a...@redhat.com] Sent: Thursday, September 27, 2012 6:12 PM To: Hao, Xudong Cc: kvm@vger.kernel.org; Zhang, Xiantao Subject: Re: [PATCH v4] kvm/fpu: Enable fully eager restore kvm FPU On 09/26/2012 07:54 AM, Hao, Xudong wrote:

[PATCH 1/3] virtio: add API to query ring capacity

2012-09-28 Thread Michael S. Tsirkin
It's sometimes necessary to query ring capacity after dequeueing a buffer. Add an API for this. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- drivers/virtio/virtio_ring.c | 19 +++ include/linux/virtio.h | 2 ++ 2 files changed, 21 insertions(+) diff --git

[PATCH 2/3] virtio-net: correct capacity math on ring full

2012-09-28 Thread Michael S. Tsirkin
Capacity math on ring full is wrong: we are looking at num_sg but that might be optimistic because of indirect buffer use. The implementation also penalizes fast path with extra memory accesses for the benefit of ring full condition handling which is slow path. It's easy to query ring capacity

[PATCH 3/3] virtio-net: put virtio net header inline with data

2012-09-28 Thread Michael S. Tsirkin
For small packets we can simplify xmit processing by linearizing buffers with the header: most packets seem to have enough head room we can use for this purpose. Since existing hypervisors require that header is the first s/g element, we need a feature bit for this. Signed-off-by: Michael S.

[PATCH 0/3] virtio-net: inline header support

2012-09-28 Thread Michael S. Tsirkin
Thinking about Sasha's patches, we can reduce ring usage for virtio net small packets dramatically if we put virtio net header inline with the data. This can be done for free in case guest net stack allocated extra head room for the packet, and I don't see why would this have any downsides. Even

[PATCH qemu] virtio-net: add feature bit for any header s/g

2012-09-28 Thread Michael S. Tsirkin
Old qemu versions required that 1st s/g entry is the header. My recent patchset titled virtio-net: iovec handling cleanup removed this limitation but a feature bit is needed so guests know it's safe to lay out header differently. This patch applies on top and adds such a feature bit. virtio net

Re: [PATCH RFC 0/2] kvm: Improving undercommit,overcommit scenarios in PLE handler

2012-09-28 Thread Andrew Theurer
On Fri, 2012-09-28 at 11:08 +0530, Raghavendra K T wrote: On 09/27/2012 05:33 PM, Avi Kivity wrote: On 09/27/2012 01:23 PM, Raghavendra K T wrote: This gives us a good case for tracking preemption on a per-vm basis. As long as we aren't preempted, we can keep the PLE window high, and

Re: [PATCH] Enabling IA32_TSC_ADJUST for guest VM

2012-09-28 Thread Marcelo Tosatti
On Fri, Sep 28, 2012 at 02:07:26AM +, Auld, Will wrote: Marcelo, I tagged my comments below with [auld] to make it easier to read. Thanks, Will -Original Message- From: Marcelo Tosatti [mailto:mtosa...@redhat.com] Sent: Thursday, September 27, 2012 4:49 AM To: Auld,

Re: [PATCH RFC 0/2] kvm: Improving undercommit,overcommit scenarios in PLE handler

2012-09-28 Thread Peter Zijlstra
On Fri, 2012-09-28 at 06:40 -0500, Andrew Theurer wrote: It will be interesting to see how this behaves with a very high lock activity in a guest. Once the scheduler defers preemption, is it for a fixed amount of time, or does it know to cut the deferral short as soon as the lock depth is

Re: [PATCH RFC 0/2] kvm: Improving undercommit,overcommit scenarios in PLE handler

2012-09-28 Thread Raghavendra K T
On 09/28/2012 05:10 PM, Andrew Theurer wrote: On Fri, 2012-09-28 at 11:08 +0530, Raghavendra K T wrote: On 09/27/2012 05:33 PM, Avi Kivity wrote: On 09/27/2012 01:23 PM, Raghavendra K T wrote: [...] Also there may be a lot of false positives (deferred preemptions even when there is no

Re: vga passthrough // questions about pci passthrough

2012-09-28 Thread Martin Wolf
well my first tests with the vga rom were useless because of apparmor rules i guess now i placed the vga.rom in /usr/share/qemu ... well the error is gone now but no changes ;) so i added the bar parameter but it also made no difference :( are you interested in the windows memory dump from the

Re: vga passthrough // questions about pci passthrough

2012-09-28 Thread Alex Williamson
On Fri, 2012-09-28 at 10:12 +0200, Jan Kiszka wrote: On 2012-09-27 21:18, Alex Williamson wrote: On Thu, 2012-09-27 at 20:43 +0200, Martin Wolf wrote: thank you for the information. i will try what you mentioned... do you have some additional information about rebooting a VM with a

resize raw images

2012-09-28 Thread Lentes, Bernd
Hi, i'm not very experienced in KVM. I installed two VM's in a raw image. I'm impressed of the speed of the vm's, that's nice :-). I have a lot of vm's running on VMWare Server 1.09, which is very old. I'd like to migrate them to KVM. I'd like to migrate them to raw images, because i'm able to

Re: vga passthrough // questions about pci passthrough

2012-09-28 Thread Jan Kiszka
On 2012-09-28 17:50, Alex Williamson wrote: On Fri, 2012-09-28 at 10:12 +0200, Jan Kiszka wrote: On 2012-09-27 21:18, Alex Williamson wrote: On Thu, 2012-09-27 at 20:43 +0200, Martin Wolf wrote: thank you for the information. i will try what you mentioned... do you have some additional

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-09-28 Thread Konrad Rzeszutek Wilk
PLE: - works for unmodified / non-Linux guests - works for all types of spins (e.g. smp_call_function*()) - utilizes an existing hardware interface (PAUSE instruction) so likely more robust compared to a software interface PV: - has more information, so it can perform better

Re: [libvirt] TSC scaling interface to management

2012-09-28 Thread Marcelo Tosatti
On Tue, Sep 25, 2012 at 11:08:58AM +0100, Daniel P. Berrange wrote: On Wed, Sep 12, 2012 at 12:39:39PM -0300, Marcelo Tosatti wrote: HW TSC scaling is a feature of AMD processors that allows a multiplier to be specified to the TSC frequency exposed to the guest. KVM also contains