[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 wei.y.y...@intel.com Signed-off-by: Li, Xin xin...@intel.com Signed-off-by: Shan, Haitao haitao.s...@intel.com --- x86/access.c | 92 ++--

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 we

Re: collect some information when qemu-kvm exit

2011-06-24 Thread lidong chen
2011/6/23 Jan Kiszka jan.kis...@web.de: 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 test,

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 jan.kis...@web.de: 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

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 jan.kis...@web.de: 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

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(int nx) {

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 stefa...@gmail.com wrote: On Sun, Jun 19, 2011 at 8:14 AM, Michael S. Tsirkin m...@redhat.com 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

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 asias.he...@gmail.com 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

Re: collect some information when qemu-kvm exit

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

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 aneesh.ku...@linux.vnet.ibm.com --- tools/kvm/Makefile|1 + tools/kvm/include/kvm/virtio-9p.h | 81 ++-

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 levinsasha...@gmail.com 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 aneesh.ku...@linux.vnet.ibm.com --- tools/kvm/Makefile

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 qz...@redhat.com 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

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 levinsasha...@gmail.com 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) +{ +

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 chris.frie...@genband.com: 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

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: send

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

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 in access.out which we