Re: Seeing DMAR errors after multiple load/unload with SR-IOV

2011-06-07 Thread padmanabh ratnakar
On Tue, Jun 7, 2011 at 4:04 AM, Chris Wright chr...@sous-sol.org wrote: * Alex Williamson (alex.william...@redhat.com) wrote: On Mon, 2011-06-06 at 14:39 +0530, padmanabh ratnakar wrote: Hi,         I am using linux kernel 2.6.39. I have a IBM x3650 M3 system. I have used following boot

Re: [PATCH] kvm: Fix build warnings

2011-06-07 Thread Borislav Petkov
On Tue, May 31, 2011 at 12:26:55PM +0200, Ingo Molnar wrote: * Avi Kivity a...@redhat.com wrote: On 05/31/2011 10:38 AM, Ingo Molnar wrote: * Borislav Petkovb...@alien8.de wrote: +++ b/arch/x86/kvm/paging_tmpl.h @@ -121,7 +121,7 @@ static int FNAME(walk_addr_generic)(struct

Re: [PATCH] kvm: Fix build warnings

2011-06-07 Thread Avi Kivity
On 06/07/2011 10:28 AM, Borislav Petkov wrote: So, any progress on this front? Warning is still there in -rc2. Thanks for the reminder, applied and queued. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain. -- To unsubscribe from this list:

Re: [SeaBIOS] Graphics card pass-through working with two pass pci-initialization

2011-06-07 Thread Jan Kiszka
On 2011-06-06 08:30, Gerd Hoffmann wrote: Hi, As Jan points out though, is a dynamic PCI region really needed? Those that need a large PCI region are also likely to need a large amount of memory. Maybe the space for PCI should just be increased. Just changing it will not work as it

Re: [PATCH] pci-assign: Do not reset the device unless the kernel supports it

2011-06-07 Thread Avi Kivity
On 06/07/2011 01:04 AM, Jan Kiszka wrote: On 2011-06-06 23:48, Alex Williamson wrote: On Mon, 2011-06-06 at 23:30 +0200, Jan Kiszka wrote: From: Jan Kiszkajan.kis...@siemens.com At least kernels 2.6.38 and 2.6.39 do not properly support issuing a reset on an assigned device and corrupt

Re: [PATCH] pci-assign: Do not reset the device unless the kernel supports it

2011-06-07 Thread Jan Kiszka
On 2011-06-07 10:06, Avi Kivity wrote: On 06/07/2011 01:04 AM, Jan Kiszka wrote: On 2011-06-06 23:48, Alex Williamson wrote: On Mon, 2011-06-06 at 23:30 +0200, Jan Kiszka wrote: From: Jan Kiszkajan.kis...@siemens.com At least kernels 2.6.38 and 2.6.39 do not properly support issuing a

Re: KVM: VMX: do not overwrite uptodate vcpu-arch.cr3 on KVM_SET_SREGS

2011-06-07 Thread Avi Kivity
On 06/06/2011 08:27 PM, Marcelo Tosatti wrote: Only decache guest CR3 value if vcpu-arch.cr3 is stale. Fixes loadvm with live guest. @@ -2049,7 +2049,9 @@ static void ept_update_paging_mode_cr0(unsigned long *hw_cr0, unsigned long cr0,

[PATCH] virtio-spec: Fix wrong bit number of device status

2011-06-07 Thread akong
From: Amos Kong ak...@redhat.com qemu-kvm/hw/virtio_config.h: #define VIRTIO_CONFIG_S_ACKNOWLEDGE 1 #define VIRTIO_CONFIG_S_DRIVER 2 #define VIRTIO_CONFIG_S_DRIVER_OK 4 #define VIRTIO_CONFIG_S_FAILED 0x80 virtio-spec: ACKNOWLEDGE(1) : DRIVER(2) : DRIVER_OK(3)

[PATCH 0/15] KVM: optimize for MMIO handled

2011-06-07 Thread Xiao Guangrong
The idea of this patchset is from Avi: | We could cache the result of a miss in an spte by using a reserved bit, and | checking the page fault error code (or seeing if we get an ept violation or | ept misconfiguration), so if we get repeated mmio on a page, we don't need to | search the slot

[PATCH 01/15] KVM: MMU: fix walking shadow page table

2011-06-07 Thread Xiao Guangrong
Properly check the last mapping, and do not walk to the next level if last spte is met Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- arch/x86/kvm/mmu.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index

[PATCH 02/15] KVM: MMU: do not update slot bitmap if spte is nonpresent

2011-06-07 Thread Xiao Guangrong
Set slot bitmap only if the spte is present Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- arch/x86/kvm/mmu.c | 15 +++ 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index cda666a..125f78d 100644 ---

[PATCH 03/15] KVM: x86: avoid unnecessarily guest page table walking

2011-06-07 Thread Xiao Guangrong
We already get the guest physical address, so use it to read guest data directly to avoid walking guest page table again Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- arch/x86/kvm/x86.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/x86.c

[PATCH 04/15] KVM: MMU: cache mmio info on page fault path

2011-06-07 Thread Xiao Guangrong
If the page fault is caused by mmio, we can cache the mmio info, later, we do not need to walk guest page table and quickly know it is a mmio fault while we emulate the mmio instruction Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- arch/x86/include/asm/kvm_host.h |5 +++

[PATCH 05/15] KVM: MMU: optimize to handle dirty bit

2011-06-07 Thread Xiao Guangrong
If dirty bit is not set, we can make the pte access read-only to avoid handing dirty bit everywhere Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- arch/x86/kvm/mmu.c | 13 ++--- arch/x86/kvm/paging_tmpl.h | 30 ++ 2 files changed,

[PATCH 06/15] KVM: MMU: cleanup for FNAME(fetch)

2011-06-07 Thread Xiao Guangrong
gw-pte_access is the final access permission, since it is unified with gw-pt_access when we walked guest page table: FNAME(walk_addr_generic): pte_access = pt_access FNAME(gpte_access)(vcpu, pte); Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- arch/x86/kvm/paging_tmpl.h

[PATCH 07/15] KVM: MMU: rename 'pt_write' to 'emulate'

2011-06-07 Thread Xiao Guangrong
If 'pt_write' is true, we need to emulate the fault. And in later patch, we need to emulate the fault even though it is not a pt_write event, so rename it to better fit the meaning Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- arch/x86/kvm/mmu.c | 10 +-

[PATCH 08/15] KVM: MMU: count used shadow pages on preparing path

2011-06-07 Thread Xiao Guangrong
Move counting used shadow pages from committing path to preparing path to reduce tlb flush on some paths Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- arch/x86/kvm/mmu.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/kvm/mmu.c

[PATCH 09/15] KVM: MMU: split kvm_mmu_free_page

2011-06-07 Thread Xiao Guangrong
Split kvm_mmu_free_page to kvm_mmu_free_lock_parts and kvm_mmu_free_unlock_parts One is used to free the parts which is under mmu lock and the other is used to free the parts which can allow be freed out of mmu lock It is used by later patch Signed-off-by: Xiao Guangrong

[PATCH 10/15] KVM: MMU: lockless walking shadow page table

2011-06-07 Thread Xiao Guangrong
Using rcu to protect shadow pages table to be freed, so we can safely walk it, it should run fast and is needed by mmio page fault Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- arch/x86/include/asm/kvm_host.h |4 ++ arch/x86/kvm/mmu.c | 79

[PATCH 11/15] KVM: MMU: filter out the mmio pfn from the fault pfn

2011-06-07 Thread Xiao Guangrong
If the page fault is caused by mmio, the gfn can not be found in memslots, and 'bad_pfn' is returned on gfn_to_hva path, so we can use 'bad_pfn' to identify the mmio page fault. And, to clarify the meaning of mmio pfn, we return fault page instead of bad page when the gfn is not allowed to

[PATCH 12/15] KVM: MMU: abstract some functions to handle fault pfn

2011-06-07 Thread Xiao Guangrong
Introduce handle_abnormal_pfn to handle fault pfn on page fault path, introduce mmu_invalid_pfn to handle fault pfn on prefetch path It is the preparing work for mmio page fault support Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- arch/x86/kvm/mmu.c | 47

[PATCH 13/15] KVM: VMX: modify the default value of nontrap shadow pte

2011-06-07 Thread Xiao Guangrong
Modify the default value to identify nontrap shadow pte and mmio shadow pte whill will be introduced in later patch Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- arch/x86/kvm/vmx.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/vmx.c

[PATCH 14/15] KVM: MMU: mmio page fault support

2011-06-07 Thread Xiao Guangrong
The idea is from Avi: | We could cache the result of a miss in an spte by using a reserved bit, and | checking the page fault error code (or seeing if we get an ept violation or | ept misconfiguration), so if we get repeated mmio on a page, we don't need to | search the slot list/tree. |

[PATCH 15/15] KVM: MMU: trace mmio page fault

2011-06-07 Thread Xiao Guangrong
Add tracepoints to trace mmio page fault Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- arch/x86/kvm/mmu.c |4 +++ arch/x86/kvm/mmutrace.h| 48 arch/x86/kvm/x86.c |5 +++- include/trace/events/kvm.h | 24

[PATCH v2] virtio-spec: Fix wrong bit number of device status

2011-06-07 Thread Amos Kong
qemu-kvm/hw/virtio_config.h: #define VIRTIO_CONFIG_S_ACKNOWLEDGE 1 #define VIRTIO_CONFIG_S_DRIVER 2 #define VIRTIO_CONFIG_S_DRIVER_OK 4 #define VIRTIO_CONFIG_S_FAILED 0x80 virtio-spec: ACKNOWLEDGE(1) : DRIVER(2) : DRIVER_OK(3) : FAILED(128): The spec

Re: KVM induced panic on 2.6.38[2367] 2.6.39

2011-06-07 Thread Brad Campbell
On 07/06/11 04:22, Eric Dumazet wrote: Could you please try latest linux-2.6 tree ? We fixed many networking bugs that could explain your crash. No good I'm afraid. [ 543.040056] = [ 543.040136] BUG

Re: KVM induced panic on 2.6.38[2367] 2.6.39

2011-06-07 Thread Patrick McHardy
On 07.06.2011 05:33, Brad Campbell wrote: On 07/06/11 04:10, Bart De Schuymer wrote: Hi Brad, This has probably nothing to do with ebtables, so please rmmod in case it's loaded. A few questions I didn't directly see an answer to in the threads I scanned... I'm assuming you actually use the

Re: KVM induced panic on 2.6.38[2367] 2.6.39

2011-06-07 Thread Eric Dumazet
Le mardi 07 juin 2011 à 21:27 +0800, Brad Campbell a écrit : On 07/06/11 04:22, Eric Dumazet wrote: Could you please try latest linux-2.6 tree ? We fixed many networking bugs that could explain your crash. No good I'm afraid. [ 543.040056]

Re: Seeing DMAR errors after multiple load/unload with SR-IOV

2011-06-07 Thread Chris Wright
* padmanabh ratnakar (pratnaka...@gmail.com) wrote: On Tue, Jun 7, 2011 at 4:04 AM, Chris Wright chr...@sous-sol.org wrote: * Alex Williamson (alex.william...@redhat.com) wrote: On Mon, 2011-06-06 at 14:39 +0530, padmanabh ratnakar wrote: Hi,         I am using linux kernel 2.6.39. I

virtio scsi host draft specification, v3

2011-06-07 Thread Paolo Bonzini
Hi all, after some preliminary discussion on the QEMU mailing list, I present a draft specification for a virtio-based SCSI host (controller, HBA, you name it). The virtio SCSI host is the basis of an alternative storage stack for KVM. This stack would overcome several limitations of the current

Re: Seeing DMAR errors after multiple load/unload with SR-IOV

2011-06-07 Thread David Woodhouse
On Tue, 2011-06-07 at 06:38 -0700, Chris Wright wrote: I think we still leak the list entry though. Bottom line is that we need to handle hotplug ADD_DEVICE and DEL_DEVICE notifications. We happen to pick up ADD_DEVICE by accident, but it's all pretty sloppy. Yeah, keeping a list of

Re: KVM induced panic on 2.6.38[2367] 2.6.39

2011-06-07 Thread Brad Campbell
On 07/06/11 21:30, Patrick McHardy wrote: On 07.06.2011 05:33, Brad Campbell wrote: On 07/06/11 04:10, Bart De Schuymer wrote: Hi Brad, This has probably nothing to do with ebtables, so please rmmod in case it's loaded. A few questions I didn't directly see an answer to in the threads I

Re: Seeing DMAR errors after multiple load/unload with SR-IOV

2011-06-07 Thread Chris Wright
* David Woodhouse (dw...@infradead.org) wrote: On Tue, 2011-06-07 at 06:38 -0700, Chris Wright wrote: I think we still leak the list entry though. Bottom line is that we need to handle hotplug ADD_DEVICE and DEL_DEVICE notifications. We happen to pick up ADD_DEVICE by accident, but it's

[PATCH] kvm tools, ui: Add simple keyboard support to SDL UI

2011-06-07 Thread Pekka Enberg
This patch wires up hw/i8042.c to the SDL UI for simple guest keyboard support. Cc: Cyrill Gorcunov gorcu...@gmail.com Cc: Ingo Molnar mi...@elte.hu Cc: John Floren j...@jfloren.net Cc: Sasha Levin levinsasha...@gmail.com Signed-off-by: Pekka Enberg penb...@kernel.org --- tools/kvm/kvm-run.c |

Re: Seeing DMAR errors after multiple load/unload with SR-IOV

2011-06-07 Thread David Woodhouse
On Tue, 2011-06-07 at 08:10 -0700, Chris Wright wrote: * David Woodhouse (dw...@infradead.org) wrote: On Tue, 2011-06-07 at 06:38 -0700, Chris Wright wrote: I think we still leak the list entry though. Bottom line is that we need to handle hotplug ADD_DEVICE and DEL_DEVICE notifications.

Re: KVM induced panic on 2.6.38[2367] 2.6.39

2011-06-07 Thread Patrick McHardy
On 07.06.2011 16:40, Brad Campbell wrote: On 07/06/11 21:30, Patrick McHardy wrote: On 07.06.2011 05:33, Brad Campbell wrote: On 07/06/11 04:10, Bart De Schuymer wrote: Hi Brad, This has probably nothing to do with ebtables, so please rmmod in case it's loaded. A few questions I didn't

Re: Seeing DMAR errors after multiple load/unload with SR-IOV

2011-06-07 Thread Chris Wright
* David Woodhouse (dw...@infradead.org) wrote: On Tue, 2011-06-07 at 08:10 -0700, Chris Wright wrote: * David Woodhouse (dw...@infradead.org) wrote: On Tue, 2011-06-07 at 06:38 -0700, Chris Wright wrote: I think we still leak the list entry though. Bottom line is that we need to

Re: Seeing DMAR errors after multiple load/unload with SR-IOV

2011-06-07 Thread Alex Williamson
On Tue, 2011-06-07 at 16:33 +0100, David Woodhouse wrote: On Tue, 2011-06-07 at 08:10 -0700, Chris Wright wrote: * David Woodhouse (dw...@infradead.org) wrote: On Tue, 2011-06-07 at 06:38 -0700, Chris Wright wrote: I think we still leak the list entry though. Bottom line is that we

Re: [PATCHv2 RFC 4/4] Revert virtio: make add_buf return capacity remaining:

2011-06-07 Thread Michael S. Tsirkin
On Thu, Jun 02, 2011 at 06:43:25PM +0300, Michael S. Tsirkin wrote: This reverts commit 3c1b27d5043086a485f8526353ae9fe37bfa1065. The only user was virtio_net, and it switched to min_capacity instead. Signed-off-by: Michael S. Tsirkin m...@redhat.com It turns out another place in

Re: [PATCHv2 RFC 3/4] virtio_net: limit xmit polling

2011-06-07 Thread Michael S. Tsirkin
On Thu, Jun 02, 2011 at 06:43:17PM +0300, Michael S. Tsirkin wrote: 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

Re: [PATCHv2 RFC 0/4] virtio and vhost-net capacity handling

2011-06-07 Thread Michael S. Tsirkin
On Thu, Jun 02, 2011 at 06:42:35PM +0300, Michael S. Tsirkin wrote: OK, here's a new attempt to use the new capacity api. I also added more comments to clarify the logic. Hope this is more readable. Let me know pls. This is on top of the patches applied by Rusty. Warning: untested.

Re: KVM induced panic on 2.6.38[2367] 2.6.39

2011-06-07 Thread Bart De Schuymer
Op 7/06/2011 16:40, Brad Campbell schreef: On 07/06/11 21:30, Patrick McHardy wrote: On 07.06.2011 05:33, Brad Campbell wrote: On 07/06/11 04:10, Bart De Schuymer wrote: Hi Brad, This has probably nothing to do with ebtables, so please rmmod in case it's loaded. A few questions I didn't

Re: KVM induced panic on 2.6.38[2367] 2.6.39

2011-06-07 Thread Eric Dumazet
Le mardi 07 juin 2011 à 17:35 +0200, Patrick McHardy a écrit : The main suspects would be NAT and TCPMSS. Did you also try whether the crash occurs with only one of these these rules? I've just compiled out CONFIG_BRIDGE_NETFILTER and can no longer access the address the way I was doing

Re: [PATCH] pci-assign: Do not reset the device unless the kernel supports it

2011-06-07 Thread Alex Williamson
On Tue, 2011-06-07 at 10:14 +0200, Jan Kiszka wrote: On 2011-06-07 10:06, Avi Kivity wrote: On 06/07/2011 01:04 AM, Jan Kiszka wrote: On 2011-06-06 23:48, Alex Williamson wrote: On Mon, 2011-06-06 at 23:30 +0200, Jan Kiszka wrote: From: Jan Kiszkajan.kis...@siemens.com At least

Re: [Qemu-devel] [PATCH v3] Add an isa device for SGA

2011-06-07 Thread Anthony Liguori
On 05/16/2011 01:45 PM, Glauber Costa wrote: This patch adds a dummy legacy ISA device whose responsibility is to deploy sgabios, an option rom for a serial graphics adapter. The proposal is that this device is always-on when -nographics, but can otherwise be enable in any setup when -device sga

[patch 4/5] kvm tools: Get rid of spaces in ld script

2011-06-07 Thread Cyrill Gorcunov
Signed-off-by: Cyrill Gorcunov gorcu...@gmail.com --- tools/kvm/bios/rom.ld.S |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-2.6.git/tools/kvm/bios/rom.ld.S === ---

[patch 5/5] kvm tools: Reform bios make fules

2011-06-07 Thread Cyrill Gorcunov
Put bios code into bios.s and adjust makefile rules accordingly. It's more natural than bios-rom.S (which is now simply a container over real bios code). Also improve bios deps in Makefile. Signed-off-by: Cyrill Gorcunov gorcu...@gmail.com --- tools/kvm/Makefile| 29 +++-

[patch 1/5] kvm tools: Options parser to handle hex numbers

2011-06-07 Thread Cyrill Gorcunov
Some kernel parameters are convenient if passed in hex form so our options parser should handle even such form of input. Signed-off-by: Cyrill Gorcunov gorcu...@gmail.com --- tools/kvm/util/parse-options.c | 102 - 1 file changed, 82 insertions(+), 20

[patch 3/5] kvm tools: Delete dangling cursor from int10

2011-06-07 Thread Cyrill Gorcunov
Noone use it anymore. Also cleanup comment on int10 as well, int10_handler routine do all the hard work. Signed-off-by: Cyrill Gorcunov gorcu...@gmail.com --- tools/kvm/bios/bios-rom.S | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) Index:

[patch 2/5] kvm tools: Introduce vidmode parmeter

2011-06-07 Thread Cyrill Gorcunov
Usually this might be set by loader but since we're the loader lets allow to specify vesa mode as well. Signed-off-by: Cyrill Gorcunov gorcu...@gmail.com --- tools/kvm/kvm-run.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) Index: linux-2.6.git/tools/kvm/kvm-run.c

[patch 0/5] kvm tools: A few fixes

2011-06-07 Thread Cyrill Gorcunov
Nothing serious, please review. Thanks. Cyrill -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [patch 2/5] kvm tools: Introduce vidmode parmeter

2011-06-07 Thread Pekka Enberg
On Tue, 7 Jun 2011, Cyrill Gorcunov wrote: Usually this might be set by loader but since we're the loader lets allow to specify vesa mode as well. Signed-off-by: Cyrill Gorcunov gorcu...@gmail.com This patch causes 'make check' to go crazy and print out bunch of these: Warning: Ignoring MMIO

Re: [patch 2/5] kvm tools: Introduce vidmode parmeter

2011-06-07 Thread Cyrill Gorcunov
On Tue, Jun 07, 2011 at 10:53:28PM +0300, Pekka Enberg wrote: On Tue, 7 Jun 2011, Cyrill Gorcunov wrote: Usually this might be set by loader but since we're the loader lets allow to specify vesa mode as well. Signed-off-by: Cyrill Gorcunov gorcu...@gmail.com This patch causes 'make

Re: [patch 2/5] kvm tools: Introduce vidmode parmeter

2011-06-07 Thread Cyrill Gorcunov
On Tue, Jun 07, 2011 at 10:53:28PM +0300, Pekka Enberg wrote: On Tue, 7 Jun 2011, Cyrill Gorcunov wrote: Usually this might be set by loader but since we're the loader lets allow to specify vesa mode as well. Signed-off-by: Cyrill Gorcunov gorcu...@gmail.com This patch causes 'make

Re: [patch 2/5] kvm tools: Introduce vidmode parmeter

2011-06-07 Thread Cyrill Gorcunov
On Wed, Jun 08, 2011 at 12:10:30AM +0400, Cyrill Gorcunov wrote: On Tue, Jun 07, 2011 at 10:53:28PM +0300, Pekka Enberg wrote: On Tue, 7 Jun 2011, Cyrill Gorcunov wrote: Usually this might be set by loader but since we're the loader lets allow to specify vesa mode as well.

[PATCH] KVM: Add compat ioctl for KVM_SET_SIGNAL_MASK

2011-06-07 Thread Alexander Graf
KVM has an ioctl to define which signal mask should be used while running inside VCPU_RUN. At least for big endian systems, this mask is different on 32-bit and 64-bit systems (though the size is identical). Add a compat wrapper that converts the mask to whatever the kernel accepts, allowing

Re: [Qemu-devel] [PATCH v3] Add an isa device for SGA

2011-06-07 Thread Glauber Costa
On 06/07/2011 04:17 PM, Anthony Liguori wrote: On 05/16/2011 01:45 PM, Glauber Costa wrote: This patch adds a dummy legacy ISA device whose responsibility is to deploy sgabios, an option rom for a serial graphics adapter. The proposal is that this device is always-on when -nographics, but can

Re: [PATCH] KVM: Add compat ioctl for KVM_SET_SIGNAL_MASK

2011-06-07 Thread Arnd Bergmann
On Tuesday 07 June 2011 22:25:15 Alexander Graf wrote: +static long kvm_vcpu_compat_ioctl(struct file *filp, + unsigned int ioctl, unsigned long arg) +{ + struct kvm_vcpu *vcpu = filp-private_data; + void __user *argp = (void __user *)arg;

Re: KVM induced panic on 2.6.38[2367] 2.6.39

2011-06-07 Thread Patrick McHardy
On 07.06.2011 20:31, Eric Dumazet wrote: Le mardi 07 juin 2011 à 17:35 +0200, Patrick McHardy a écrit : The main suspects would be NAT and TCPMSS. Did you also try whether the crash occurs with only one of these these rules? I've just compiled out CONFIG_BRIDGE_NETFILTER and can no longer

Re: KVM induced panic on 2.6.38[2367] 2.6.39

2011-06-07 Thread Brad Campbell
On 08/06/11 02:04, Bart De Schuymer wrote: If the bug is easily triggered with your guest os, then you could try to capture the traffic with wireshark (or something else) in a configuration that doesn't crash your system. Save the traffic in a pcap file. Then you can see if resending that

Re: KVM induced panic on 2.6.38[2367] 2.6.39

2011-06-07 Thread Brad Campbell
On 08/06/11 06:57, Patrick McHardy wrote: On 07.06.2011 20:31, Eric Dumazet wrote: Le mardi 07 juin 2011 à 17:35 +0200, Patrick McHardy a écrit : The main suspects would be NAT and TCPMSS. Did you also try whether the crash occurs with only one of these these rules? I've just compiled out

Re: KVM induced panic on 2.6.38[2367] 2.6.39

2011-06-07 Thread Brad Campbell
On 07/06/11 23:35, Patrick McHardy wrote: The main suspects would be NAT and TCPMSS. Did you also try whether the crash occurs with only one of these these rules? To be honest I'm actually having trouble finding where TCPMSS is actually set in that ruleset. This is a production machine so I

[PATCH] KVM: Add compat ioctl for KVM_SET_SIGNAL_MASK

2011-06-07 Thread Alexander Graf
KVM has an ioctl to define which signal mask should be used while running inside VCPU_RUN. At least for big endian systems, this mask is different on 32-bit and 64-bit systems (though the size is identical). Add a compat wrapper that converts the mask to whatever the kernel accepts, allowing

Re: [PATCHv2 RFC 4/4] Revert virtio: make add_buf return capacity remaining:

2011-06-07 Thread Rusty Russell
On Tue, 7 Jun 2011 18:54:57 +0300, Michael S. Tsirkin m...@redhat.com wrote: On Thu, Jun 02, 2011 at 06:43:25PM +0300, Michael S. Tsirkin wrote: This reverts commit 3c1b27d5043086a485f8526353ae9fe37bfa1065. The only user was virtio_net, and it switched to min_capacity instead.

Re: [PATCH v2] virtio-spec: Fix wrong bit number of device status

2011-06-07 Thread Rusty Russell
On Tue, 7 Jun 2011 21:09:42 +0800, Amos Kong ak...@redhat.com wrote: qemu-kvm/hw/virtio_config.h: #define VIRTIO_CONFIG_S_ACKNOWLEDGE 1 #define VIRTIO_CONFIG_S_DRIVER 2 #define VIRTIO_CONFIG_S_DRIVER_OK 4 #define VIRTIO_CONFIG_S_FAILED 0x80 virtio-spec:

Re: [PATCH 0/15] KVM: optimize for MMIO handled

2011-06-07 Thread Takuya Yoshikawa
On Tue, 07 Jun 2011 20:58:06 +0800 Xiao Guangrong xiaoguangr...@cn.fujitsu.com wrote: The performance test result: Netperf (TCP_RR): === ept is enabled: Before After 1st 709.58 734.60 2nd 715.40 723.75 3rd 713.45

Re: [PATCH 05/15] KVM: MMU: optimize to handle dirty bit

2011-06-07 Thread Xiao Guangrong
On 06/07/2011 09:01 PM, Xiao Guangrong wrote: If dirty bit is not set, we can make the pte access read-only to avoid handing dirty bit everywhere diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h index b0c8184..67971da 100644 --- a/arch/x86/kvm/paging_tmpl.h +++

Re: [PATCH 0/15] KVM: optimize for MMIO handled

2011-06-07 Thread Xiao Guangrong
On 06/08/2011 11:11 AM, Takuya Yoshikawa wrote: On Tue, 07 Jun 2011 20:58:06 +0800 Xiao Guangrong xiaoguangr...@cn.fujitsu.com wrote: The performance test result: Netperf (TCP_RR): === ept is enabled: Before After 1st 709.58 734.60 2nd

Guest to host communication in kvm

2011-06-07 Thread Vaibhav Nipunage
Hello, I am trying to understand the kvm code. I am writing simple code in which I want to send some message or notification from the guest to host (qemu-kvm). I thought of implementing some hypercalls in which, on some condition this hypercall will get called and it get handled in qemu-kvm. But

Re: [PATCH 0/15] KVM: optimize for MMIO handled

2011-06-07 Thread Xiao Guangrong
On 06/08/2011 11:25 AM, Xiao Guangrong wrote: On 06/08/2011 11:11 AM, Takuya Yoshikawa wrote: On Tue, 07 Jun 2011 20:58:06 +0800 Xiao Guangrong xiaoguangr...@cn.fujitsu.com wrote: The performance test result: Netperf (TCP_RR): === ept is enabled: Before

Re: [PATCH 0/15] KVM: optimize for MMIO handled

2011-06-07 Thread Takuya Yoshikawa
On Wed, 08 Jun 2011 11:32:12 +0800 Xiao Guangrong xiaoguangr...@cn.fujitsu.com wrote: On 06/08/2011 11:25 AM, Xiao Guangrong wrote: On 06/08/2011 11:11 AM, Takuya Yoshikawa wrote: On Tue, 07 Jun 2011 20:58:06 +0800 Xiao Guangrong xiaoguangr...@cn.fujitsu.com wrote: The performance test

Re: KVM induced panic on 2.6.38[2367] 2.6.39

2011-06-07 Thread Eric Dumazet
Le mercredi 08 juin 2011 à 08:18 +0800, Brad Campbell a écrit : On 08/06/11 06:57, Patrick McHardy wrote: On 07.06.2011 20:31, Eric Dumazet wrote: Le mardi 07 juin 2011 à 17:35 +0200, Patrick McHardy a écrit : The main suspects would be NAT and TCPMSS. Did you also try whether the crash

Re: [PATCH 0/15] KVM: optimize for MMIO handled

2011-06-07 Thread Xiao Guangrong
On 06/08/2011 11:47 AM, Takuya Yoshikawa wrote: Sure, KVM guest is the client, and it uses e1000 NIC, and uses NAT network connect to the netperf server, the bandwidth of our network is 100M. I see the reason, thank you! I used virtio-net and you used e1000. You are using e1000 to see

[PATCH] KVM: Add compat ioctl for KVM_SET_SIGNAL_MASK

2011-06-07 Thread Alexander Graf
KVM has an ioctl to define which signal mask should be used while running inside VCPU_RUN. At least for big endian systems, this mask is different on 32-bit and 64-bit systems (though the size is identical). Add a compat wrapper that converts the mask to whatever the kernel accepts, allowing

Re: [PATCH] KVM: Add compat ioctl for KVM_SET_SIGNAL_MASK

2011-06-07 Thread Arnd Bergmann
On Tuesday 07 June 2011 22:25:15 Alexander Graf wrote: +static long kvm_vcpu_compat_ioctl(struct file *filp, + unsigned int ioctl, unsigned long arg) +{ + struct kvm_vcpu *vcpu = filp-private_data; + void __user *argp = (void __user *)arg;

[PATCH] KVM: Add compat ioctl for KVM_SET_SIGNAL_MASK

2011-06-07 Thread Alexander Graf
KVM has an ioctl to define which signal mask should be used while running inside VCPU_RUN. At least for big endian systems, this mask is different on 32-bit and 64-bit systems (though the size is identical). Add a compat wrapper that converts the mask to whatever the kernel accepts, allowing