Re: [PATCH 06/10] virtio: console: fix race in port_fops_poll() and port unplug

2013-07-23 Thread Jason Wang
On 07/23/2013 01:26 PM, Rusty Russell wrote: > Jason Wang writes: >> On 07/22/2013 01:45 PM, Rusty Russell wrote: >>> Amit Shah writes: On (Fri) 19 Jul 2013 [18:17:32], Jason Wang wrote: > On 07/19/2013 03:48 PM, Amit Shah wrote: >> On (Fri) 19 Jul 2013 [15:03:50], Jason Wang wrote:

Re: [PATCH 06/10] virtio: console: fix race in port_fops_poll() and port unplug

2013-07-23 Thread Amit Shah
On (Mon) 22 Jul 2013 [15:15:34], Rusty Russell wrote: > Amit Shah writes: > > On (Fri) 19 Jul 2013 [18:17:32], Jason Wang wrote: > >> On 07/19/2013 03:48 PM, Amit Shah wrote: > >> > On (Fri) 19 Jul 2013 [15:03:50], Jason Wang wrote: > >> >> On 07/19/2013 04:16 AM, Amit Shah wrote: > >> >>> Between

Re: [PATCH 05/10] virtio: console: update private_data in struct file only on successful open

2013-07-23 Thread Amit Shah
On (Mon) 22 Jul 2013 [15:07:52], Rusty Russell wrote: > Amit Shah writes: > > Mateusz Guzik points out that we update the 'file' struct's private_data > > field before we've successfully done all our checks. This means we can > > return an error with the private_data field updated. This could le

Re: [PATCH 08/10] virtio: console: add locks around buffer removal in port unplug path

2013-07-23 Thread Amit Shah
On (Mon) 22 Jul 2013 [15:26:22], Rusty Russell wrote: > Amit Shah writes: > > The removal functions act on the vqs, and the vq operations need to be > > locked. > > > > Signed-off-by: Amit Shah > > How can userspace access the port now? By the time we are cleaning up > buffers, there should be

[PATCH 2/4] xen: switch to use hypervisor_cpuid_base()

2013-07-23 Thread Jason Wang
Switch to use hypervisor_cpuid_base() to detect Xen. Cc: Konrad Rzeszutek Wilk Cc: Jeremy Fitzhardinge Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: Paolo Bonzini Cc: xen-de...@lists.xensource.com Cc: virtualization@lists.linux-foundation.org Signed-off-by:

Re: [PATCH 2/4] xen: switch to use hypervisor_cpuid_base()

2013-07-23 Thread Paolo Bonzini
Il 23/07/2013 11:41, Jason Wang ha scritto: > Switch to use hypervisor_cpuid_base() to detect Xen. > > Cc: Konrad Rzeszutek Wilk > Cc: Jeremy Fitzhardinge > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: x...@kernel.org > Cc: Paolo Bonzini > Cc: xen-de...@lists.xensource.

KVM Forum 2013 Call for Participation - Extended to August 4th

2013-07-23 Thread Anthony Liguori
We have received numerous requests to extend the CFP deadline and so we are happy to announce that the CFP deadline has been moved by two weeks to August 4th. = KVM Forum 2013: Call For Participation October 21-23, 2013 - Edinburgh I

Re: [PATCH RFC V11 15/18] kvm : Paravirtual ticketlocks support for linux guests running on KVM hypervisor

2013-07-23 Thread Gleb Natapov
On Mon, Jul 22, 2013 at 11:50:16AM +0530, Raghavendra K T wrote: > +static void kvm_lock_spinning(struct arch_spinlock *lock, __ticket_t want) > +{ > + struct kvm_lock_waiting *w; > + int cpu; > + u64 start; > + unsigned long flags; > + Why don't you bailout if in nmi here like we d

Re: [PATCH 2/4] xen: switch to use hypervisor_cpuid_base()

2013-07-23 Thread Konrad Rzeszutek Wilk
On Tue, Jul 23, 2013 at 05:41:03PM +0800, Jason Wang wrote: > Switch to use hypervisor_cpuid_base() to detect Xen. > > Cc: Konrad Rzeszutek Wilk Acked-by: Konrad Rzeszutek Wilk > Cc: Jeremy Fitzhardinge > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: x...@kernel.org > C

Re: [Xen-devel] is kexec on Xen domU possible?

2013-07-23 Thread Matt Wilson
On Mon, Jul 22, 2013 at 11:33:15AM -0700, Greg KH wrote: > On Mon, Jul 22, 2013 at 11:24:46AM -0700, H. Peter Anvin wrote: > > On 07/22/2013 10:20 AM, Eric W. Biederman wrote: > > >>> > > >>> Also, in any virtualized environment the hypervisor can do a better job > > >>> for things like kdump, simp

Re: [Xen-devel] is kexec on Xen domU possible?

2013-07-23 Thread Greg KH
On Tue, Jul 23, 2013 at 05:22:36PM -0700, Matt Wilson wrote: > On Mon, Jul 22, 2013 at 11:33:15AM -0700, Greg KH wrote: > > On Mon, Jul 22, 2013 at 11:24:46AM -0700, H. Peter Anvin wrote: > > > On 07/22/2013 10:20 AM, Eric W. Biederman wrote: > > > >>> > > > >>> Also, in any virtualized environment