KSM memory saving amount

2011-09-09 Thread Mihamina Rakotomandimby
Hi all, Running an Ubuntu Natty where I launched 3 Xubuntu and 1 win 7, I cat see: /sys/kernel/mm/ksm/full_scans: 34 /sys/kernel/mm/ksm/pages_shared: 8020 /sys/kernel/mm/ksm/pages_sharing: 36098 /sys/kernel/mm/ksm/pages_to_scan: 100 /sys/kernel/mm/ksm/pages_unshared: 247109

About hotplug multifunction

2011-09-09 Thread Amos Kong
Hello all, I'm working on hotplug pci multifunction. 1. qemu cmdline: ./x86_64-softmmu/qemu-system-x86_64 -snapshot -m 2000 /home/kvm_autotest_root/images/rhel61-64-virtio.qcow2 -vnc :0 -monitor unix:/tmp/a,server,nowait --enable-kvm -net none 2. script to add virtio-blk devices: for i in

Re: About hotplug multifunction

2011-09-09 Thread Michael S. Tsirkin
On Fri, Sep 09, 2011 at 03:08:21AM -0400, Amos Kong wrote: Hello all, I'm working on hotplug pci multifunction. 1. qemu cmdline: ./x86_64-softmmu/qemu-system-x86_64 -snapshot -m 2000 /home/kvm_autotest_root/images/rhel61-64-virtio.qcow2 -vnc :0 -monitor unix:/tmp/a,server,nowait

Re: CFQ I/O starvation problem triggered by RHEL6.0 KVM guests

2011-09-09 Thread Takuya Yoshikawa
Vivek Goyal vgo...@redhat.com wrote: So you are using both RHEL 6.0 in both host and guest kernel? Can you reproduce the same issue with upstream kernels? How easily/frequently you can reproduce this with RHEL6.0 host. Guests were CentOS6.0. I have only RHEL6.0 and RHEL6.1 test results now.

Re: [PATCH] KVM: emulate lapic tsc deadline timer for hvm

2011-09-09 Thread Marcelo Tosatti
On Fri, Sep 09, 2011 at 01:12:51AM +0800, Liu, Jinsong wrote: --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -229,6 +229,8 @@ #define MSR_IA32_APICBASE_ENABLE (111) #define MSR_IA32_APICBASE_BASE (0xf12) +#define MSR_IA32_TSCDEADLINE

RFC [v2]: vfio / device assignment -- layout of device fd files

2011-09-09 Thread Stuart Yoder
Based on the discussions over the last couple of weeks I have updated the device fd file layout proposal and tried to specify it a bit more formally. === 1. Overview This specification describes the layout of device files used in

Re: RFC [v2]: vfio / device assignment -- layout of device fd files

2011-09-09 Thread Stuart Yoder
Meant to identify the changes in v2 of this proposal: v2: -removed PCI_INFO record type -removed PCI_BAR_INFO record type -PCI_CONFIG_SPACE is now a sub-record/property of a REGION -removed physical address from region and made it a subrecord/property of a REGION -added

Re: [PATCH 0/4] Avoid soft lockup message when KVM is stopped by host

2011-09-09 Thread Marcelo Tosatti
On Thu, Sep 01, 2011 at 02:27:49PM -0600, emun...@mgebm.net wrote: On Thu, 01 Sep 2011 14:24:12 -0500, Anthony Liguori wrote: On 08/30/2011 07:26 AM, Marcelo Tosatti wrote: On Mon, Aug 29, 2011 at 05:27:11PM -0600, Eric B Munson wrote: Currently, when qemu stops a guest kernel that guest will

Re: [PATCH 1/2] kvm tools: fix repeated io emulation

2011-09-09 Thread Sasha Levin
On Fri, 2011-09-09 at 10:26 +0800, Xiao Guangrong wrote: On 08/18/2011 11:08 PM, Avi Kivity wrote: On 08/18/2011 12:35 AM, Sasha Levin wrote: On Thu, 2011-08-18 at 09:13 +0300, Pekka Enberg wrote: Hi, On Thu, Aug 18, 2011 at 6:06 AM, Xiao Guangrong xiaoguangr...@cn.fujitsu.com

Re: [Qemu-devel] CFQ I/O starvation problem triggered by RHEL6.0 KVM guests

2011-09-09 Thread Stefan Hajnoczi
On Fri, Sep 9, 2011 at 10:00 AM, Takuya Yoshikawa yoshikawa.tak...@oss.ntt.co.jp wrote: Vivek Goyal vgo...@redhat.com wrote: So you are using both RHEL 6.0 in both host and guest kernel? Can you reproduce the same issue with upstream kernels? How easily/frequently you can reproduce this with

Re: CFQ I/O starvation problem triggered by RHEL6.0 KVM guests

2011-09-09 Thread Vivek Goyal
On Fri, Sep 09, 2011 at 06:00:28PM +0900, Takuya Yoshikawa wrote: [..] - Even if there are close cooperators, these queues are merged and they are treated as single queue from slice point of view. So cooperating queues should be merged and get a single slice instead of starving

Re: [PATCH v8 3/4] block: add block timer and throttling algorithm

2011-09-09 Thread Marcelo Tosatti
On Thu, Sep 08, 2011 at 06:11:07PM +0800, Zhi Yong Wu wrote: Note: 1.) When bps/iops limits are specified to a small value such as 511 bytes/s, this VM will hang up. We are considering how to handle this senario. You can increase the length of the slice, if the request is larger than

Re: [PATCH 0/6] Some emulator cleanups

2011-09-09 Thread Marcelo Tosatti
On Wed, Sep 07, 2011 at 04:41:34PM +0300, Avi Kivity wrote: Some mindless emulator cleanups while waiting for autotest. Avi Kivity (6): KVM: x86 emulator: simplify emulate_2op_SrcV() KVM: x86 emulator: simplify emulate_2op_cl() KVM: x86 emulator: simplify emulate_2op_cl() KVM: x86

Re: [net-next-2.6 PATCH 0/3 RFC] macvlan: MAC Address filtering support for passthru mode

2011-09-09 Thread Roopa Prabhu
On 9/8/11 9:25 PM, Sridhar Samudrala s...@us.ibm.com wrote: On 9/8/2011 8:00 PM, Roopa Prabhu wrote: On 9/8/11 12:33 PM, Michael S. Tsirkinm...@redhat.com wrote: On Thu, Sep 08, 2011 at 12:23:56PM -0700, Roopa Prabhu wrote: I think the main usecase for passthru mode is to assign a

1st level guest crashes on start of 2nd level guest in nested virtualisation

2011-09-09 Thread Steffen Evers (EXT)
Hello Nadav Har'El, We are using qemu-kvm with nested virtualisation (two guest levels). The 1st-level guest sporadicly crashes on start-up of 2nd level guest (in BIOS). We have now found out that it always crashes with parameter no-kvm-irqchip set. Do you have any idea what the problem is? Any

Re: [net-next-2.6 PATCH 0/3 RFC] macvlan: MAC Address filtering support for passthru mode

2011-09-09 Thread Roopa Prabhu
On 9/8/11 10:55 PM, Michael S. Tsirkin m...@redhat.com wrote: On Thu, Sep 08, 2011 at 07:53:11PM -0700, Roopa Prabhu wrote: Phase 1: Goal: Enable hardware filtering for all macvlan modes - In macvlan passthru mode the single guest virtio-nic connected will receive traffic that he

Re: About hotplug multifunction

2011-09-09 Thread Alex Williamson
On Fri, 2011-09-09 at 10:32 +0300, Michael S. Tsirkin wrote: On Fri, Sep 09, 2011 at 03:08:21AM -0400, Amos Kong wrote: Hello all, I'm working on hotplug pci multifunction. 1. qemu cmdline: ./x86_64-softmmu/qemu-system-x86_64 -snapshot -m 2000

Re: KSM memory saving amount

2011-09-09 Thread Thomas Treutner
Am 09.09.2011 08:38, schrieb Mihamina Rakotomandimby: How many byte is a page? Typically, unless you use hugepages, a page is 4 KiB = 4096 Byte. -- 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

Re: About hotplug multifunction

2011-09-09 Thread Isaku Yamahata
pci/pcie hot plug needs clean up for multifunction hotplug in long term. Only single function device case works. Multifunction case is broken somwehat. Especially the current acpi based hotplug should be replaced by the standardized hot plug controller in long term. On Fri, Sep 09, 2011 at

RE: [PATCH] KVM: emulate lapic tsc deadline timer for hvm

2011-09-09 Thread Liu, Jinsong
Marcelo Tosatti wrote: On Fri, Sep 09, 2011 at 01:12:51AM +0800, Liu, Jinsong wrote: --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -229,6 +229,8 @@ #define MSR_IA32_APICBASE_ENABLE (111) #define MSR_IA32_APICBASE_BASE (0xf12) +#define

Re: KSM memory saving amount

2011-09-09 Thread Dan VerWeire
On Fri, Sep 9, 2011 at 12:52 PM, Thomas Treutner tho...@scripty.at wrote: Am 09.09.2011 08:38, schrieb Mihamina Rakotomandimby: How many byte is a page? Typically, unless you use hugepages, a page is 4 KiB = 4096 Byte. -- To unsubscribe from this list: send the line unsubscribe kvm in the

RE: [PATCH] KVM: emulate lapic tsc deadline timer for hvm

2011-09-09 Thread Liu, Jinsong
Marcelo Tosatti wrote: On Fri, Sep 09, 2011 at 01:12:51AM +0800, Liu, Jinsong wrote: --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -229,6 +229,8 @@ #define MSR_IA32_APICBASE_ENABLE (111) #define MSR_IA32_APICBASE_BASE (0xf12) +#define

Re: [PATCH] qemu-kvm: Resolve PCI upstream diffs

2011-09-09 Thread Marcelo Tosatti
On Thu, Sep 08, 2011 at 12:48:02PM +0200, Jan Kiszka wrote: Resolve all unneeded deviations from upstream code. No functional changes. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/pci.c | 11 +++ hw/pci.h |5 - 2 files changed, 11 insertions(+), 5

Re: [PATCH 1/2] qemu-kvm: pc: Factor out apic_next_timer

2011-09-09 Thread Marcelo Tosatti
On Thu, Sep 08, 2011 at 12:51:31PM +0200, Jan Kiszka wrote: Factor out apic_next_timer from apic_timer_update. The former can then be used to update next_timer without actually starting the qemu timer. KVM's in-kernel APIC model will make use of it. Signed-off-by: Jan Kiszka

Re: KSM memory saving amount

2011-09-09 Thread Marcelo Tosatti
On Fri, Sep 09, 2011 at 09:38:23AM +0300, Mihamina Rakotomandimby wrote: Hi all, Running an Ubuntu Natty where I launched 3 Xubuntu and 1 win 7, I cat see: /sys/kernel/mm/ksm/full_scans: 34 /sys/kernel/mm/ksm/pages_shared: 8020 /sys/kernel/mm/ksm/pages_sharing: 36098

Re: About hotplug multifunction

2011-09-09 Thread Marcelo Tosatti
On Fri, Sep 09, 2011 at 10:05:01AM -0700, Alex Williamson wrote: On Fri, 2011-09-09 at 10:32 +0300, Michael S. Tsirkin wrote: On Fri, Sep 09, 2011 at 03:08:21AM -0400, Amos Kong wrote: Hello all, I'm working on hotplug pci multifunction. 1. qemu cmdline:

Re: [PATCH] KVM: emulate lapic tsc deadline timer for hvm

2011-09-09 Thread Marcelo Tosatti
On Sat, Sep 10, 2011 at 02:11:36AM +0800, Liu, Jinsong wrote: Marcelo Tosatti wrote: On Fri, Sep 09, 2011 at 01:12:51AM +0800, Liu, Jinsong wrote: --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -229,6 +229,8 @@ #define MSR_IA32_APICBASE_ENABLE

RE: [PATCH] KVM: emulate lapic tsc deadline timer for hvm

2011-09-09 Thread Liu, Jinsong
My question is, which kvm_get_msrs/kvm_put_msrs routine be used by live migration, the routine in target-i386/kvm.c, or in kvm/libkvm/libkvm-x86.c? They both have ioctl KVM_GET_MSR_INDEX_LIST/ KVM_GET_MSRS/ KVM_SET_MSRS, but I'm not clear their purpose/usage difference.

Re: [PATCH 0/4] Avoid soft lockup message when KVM is stopped by host

2011-09-09 Thread Marcelo Tosatti
On Thu, Sep 01, 2011 at 02:27:49PM -0600, emun...@mgebm.net wrote: On Thu, 01 Sep 2011 14:24:12 -0500, Anthony Liguori wrote: On 08/30/2011 07:26 AM, Marcelo Tosatti wrote: On Mon, Aug 29, 2011 at 05:27:11PM -0600, Eric B Munson wrote: Currently, when qemu stops a guest kernel that guest will