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

2011-06-24 Thread Yang, Wei
This patch checks SMEP on prefetch pte path when cr0.wp=1 and cr0.wp=0. Signed-off-by: Yang, Wei Signed-off-by: Li, Xin Signed-off-by: Shan, Haitao --- x86/access.c | 92 ++-- x86/cstart64.S |1 + 2 files changed, 90 insertions(+)

Re: [PATCH 0/2] Introduce iommu_commit() function

2011-06-24 Thread Roedel, Joerg
On Thu, Jun 23, 2011 at 01:20:53PM -0400, Chris Wright wrote: > * David Woodhouse (dw...@infradead.org) wrote: > > I'd much rather KVM just gave us a list of the pages to map, in a single > > call. > > This makes most sense to me. But how is this supposed to work with arbitrary page-sizes? When w

Re: collect some information when qemu-kvm exit

2011-06-24 Thread lidong chen
2011/6/23 Jan Kiszka : > On 2011-06-23 15:56, lidong chen wrote: is it safe to register another signal handler? if somebody know the reason, please tell me. and is it worth to do this? >>> >> because the core dump file is too big, and the time of core dump is too long. >> I do a

Re: collect some information when qemu-kvm exit

2011-06-24 Thread Jan Kiszka
On 2011-06-24 10:24, lidong chen wrote: > 2011/6/23 Jan Kiszka : >> On 2011-06-23 15:56, lidong chen wrote: > is it safe to register another signal handler? > if somebody know the reason, please tell me. > > and is it worth to do this? >>> because the core dump file is too big,

Re: collect some information when qemu-kvm exit

2011-06-24 Thread Jan Kiszka
On 2011-06-24 10:55, Jan Kiszka wrote: > On 2011-06-24 10:24, lidong chen wrote: >> 2011/6/23 Jan Kiszka : >>> On 2011-06-23 15:56, lidong chen wrote: >> is it safe to register another signal handler? >> if somebody know the reason, please tell me. >> >> and is it worth to do this?

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

2011-06-24 Thread Xiao Guangrong
On 06/24/2011 03:16 PM, Yang, Wei 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? > void set_efer_nx(i

Re: [RFC] virtio: Support releasing lock during kick

2011-06-24 Thread Stefan Hajnoczi
On Mon, Jun 20, 2011 at 4:27 PM, Stefan Hajnoczi wrote: > On Sun, Jun 19, 2011 at 8:14 AM, Michael S. Tsirkin wrote: >> On Wed, Jun 23, 2010 at 10:24:02PM +0100, Stefan Hajnoczi wrote: >>> The virtio block device holds a lock during I/O request processing. >>> Kicking the virtqueue while the lock

Re: [PATCH] kvm tools: Signal only one thread when injecting console interrupts

2011-06-24 Thread Asias He
On 06/16/2011 03:29 PM, Ingo Molnar wrote: > * Asias He wrote: > >> On 06/16/2011 05:33 AM, Sasha Levin wrote: >>> Send signals only to the thread which handles console injection >>> instead of the entire process. >>> >>> This prevents every single thread from having to ignore SIGALRM >>> and wil

Re: collect some information when qemu-kvm exit

2011-06-24 Thread lidong chen
2011/6/24 Jan Kiszka : > On 2011-06-24 10:55, Jan Kiszka wrote: >> On 2011-06-24 10:24, lidong chen wrote: >>> 2011/6/23 Jan Kiszka : On 2011-06-23 15:56, lidong chen wrote: >>> is it safe to register another signal handler? >>> if somebody know the reason, please tell me. >>>

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

2011-06-24 Thread Sasha Levin
On Tue, 2011-06-21 at 15:50 +0530, Aneesh Kumar K.V wrote: > The protocol data is in little-endian format. > > Signed-off-by: Aneesh Kumar K.V > --- > tools/kvm/Makefile|1 + > tools/kvm/include/kvm/virtio-9p.h | 81 ++- > tools/kvm/virtio/9p-pdu.c | 237 ++

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

2011-06-24 Thread Aneesh Kumar K.V
On Fri, 24 Jun 2011 09:47:18 -0400, Sasha Levin wrote: > On Tue, 2011-06-21 at 15:50 +0530, Aneesh Kumar K.V wrote: > > The protocol data is in little-endian format. > > > > Signed-off-by: Aneesh Kumar K.V > > --- > > tools/kvm/Makefile|1 + > > tools/kvm/include/kvm/virtio-

Re: [Autotest] [PATCH v2] KVM Test: kvm_monitor.py: Close socket explicitly if exception raised in __init__

2011-06-24 Thread Lucas Meneghel Rodrigues
LGTM, applied, thanks! http://autotest.kernel.org/changeset/5450 On Thu, Jun 23, 2011 at 4:00 AM, Qingtang Zhou wrote: > monitor socket will be initiated at the beginning of '*Monitor.__init__', > if exception occur in this function, socket will not be closed correctly. > In this case, socket sh

SR-IOV and KVM?

2011-06-24 Thread Chris Friesen
Is anyone working on SR-IOV for KVM, specifically for networking? Or is virtio good enough that it's not a pressing concern? Thanks, Chris -- Chris Friesen Software Developer GENBAND chris.frie...@genband.com www.genband.com -- To unsubscribe from this list: send the line "unsubscribe kvm"

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

2011-06-24 Thread Sasha Levin
On Fri, 2011-06-24 at 21:30 +0530, Aneesh Kumar K.V wrote: > On Fri, 24 Jun 2011 09:47:18 -0400, Sasha Levin > wrote: > > On Tue, 2011-06-21 at 15:50 +0530, Aneesh Kumar K.V wrote: > > > +static void virtio_p9_pdu_read(struct p9_pdu *pdu, void *data, size_t > > > size) > > > +{ > > > + size_t le

Re: SR-IOV and KVM?

2011-06-24 Thread lidong chen
I have tested the performance of sr-iov for kvm, it better than virtio-net. 2011/6/25 Chris Friesen : > > Is anyone working on SR-IOV for KVM, specifically for networking?  Or is > virtio good enough that it's not a pressing concern? > > Thanks, > Chris > > > -- > Chris Friesen > Software Develope

Re: SR-IOV and KVM?

2011-06-24 Thread Sasha Levin
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? > Thanks, > Chris > > -- Sasha. -- To unsubscribe from this list: s

Does anyone successfully use USB drive in Windows7 guest?

2011-06-24 Thread Flypen CloudMe
Hi, Does anyone successfully use USB drive in Windows7 guest? If I pass a USB drive to Windows7 guest, Device Manager may find this device but the USB mass storage driver can't be installed successfully. I have tried many times. Is the emulated USB controller is so old and Windows7 doesn't support

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

2011-06-24 Thread Yang, Wei Y
> > > +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 exception 13