Re: [PATCH 03/10] usb-ehci: remove unused variables

2011-06-14 Thread Gerd Hoffmann
On 06/14/11 19:35, Michael S. Tsirkin wrote: Signed-off-by: Michael S. Tsirkin usb patch queue has a simliar fix already. I'd suggest to drop this to reduce merge conflicts. cheers, Gerd -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@

Re: Unable to unload kvm-intel module

2011-06-14 Thread Jan Kiszka
On 2011-06-14 23:10, AP wrote: > On Tue, Jun 14, 2011 at 1:05 PM, Jan Kiszka wrote: >> On 2011-06-14 20:30, AP wrote: >>> On Tue, Jun 14, 2011 at 1:32 AM, Avi Kivity wrote: On 06/13/2011 08:11 PM, AP wrote: > > On Sun, Jun 12, 2011 at 8:35 AM, Avi Kivity wrote: >> On 06/11/2011

Re: [PATCH 1/1] [virt] virtio-blk: Use ida to allocate disk index

2011-06-14 Thread Rusty Russell
> Since virtio blk driver doesn't use async probe, it needn't use spinlock to > protect ida. > So remove the lock from patch. OK, that's fine, but: > - if (index_to_minor(index) >= 1 << MINORBITS) > - return -ENOSPC; > + do { > + if (!ida_pre_get(&vd_index_ida, GFP

Re: qemu-kvm-0.14.x regression - windows 2K8 R2 stopped booting

2011-06-14 Thread Nikola Ciprich
Hello Avi, sorry, I've been off for vacation for few days now. I think even "clean" preinstalled guest worked properly, only the one particular production machine didn't. I'll confirm during this week. n. > Does installing the same guest software into a new image work? > > -- > error compiling

Re: [PATCH v2 6/8] kvm tools: Add rwlock wrapper

2011-06-14 Thread Paul E. McKenney
On Tue, Jun 14, 2011 at 09:25:22PM -0400, Sasha Levin wrote: > On Tue, 2011-06-14 at 16:42 -0700, Paul E. McKenney wrote: > > On Tue, Jun 14, 2011 at 06:26:01PM -0400, Sasha Levin wrote: > > > Sorry for the delay on this. > > > > Actually, you might have had excellent timing on this one. > > > >

Re: [PATCH 3/7] KVM-HV: KVM Steal time implementation

2011-06-14 Thread Glauber Costa
On 06/14/2011 04:45 AM, Gleb Natapov wrote: On Mon, Jun 13, 2011 at 07:31:33PM -0400, Glauber Costa wrote: To implement steal time, we need the hypervisor to pass the guest information about how much time was spent running other processes outside the VM. This is per-vcpu, and using the kvmclock

Re: [PATCH 6/7] KVM-GST: adjust scheduler cpu power

2011-06-14 Thread Glauber Costa
On 06/14/2011 07:42 AM, Peter Zijlstra wrote: On Mon, 2011-06-13 at 19:31 -0400, Glauber Costa wrote: @@ -1981,12 +1987,29 @@ static void update_rq_clock_task(struct rq *rq, s64 delta) rq->prev_irq_time += irq_delta; delta -= irq_delta; +#endif +#ifdef CONFIG_PARAVIRT_TIME_ACC

Re: [PATCH v2 6/8] kvm tools: Add rwlock wrapper

2011-06-14 Thread Sasha Levin
On Tue, 2011-06-14 at 16:42 -0700, Paul E. McKenney wrote: > On Tue, Jun 14, 2011 at 06:26:01PM -0400, Sasha Levin wrote: > > Sorry for the delay on this. > > Actually, you might have had excellent timing on this one. > > Could you please try Shaohua Li's patch at: > > https://lkml.org/lkm

Re: [PATCH 5/7] KVM-GST: KVM Steal time accounting

2011-06-14 Thread Glauber Costa
On 06/14/2011 07:10 AM, Peter Zijlstra wrote: On Mon, 2011-06-13 at 19:31 -0400, Glauber Costa wrote: +static inline int touch_steal_time(int is_idle) +{ + u64 steal, st = 0; + + if (static_branch(¶virt_steal_enabled)) { + + steal = paravirt_steal_clock(smp_processor_id

Re: [PATCH 3/7] KVM-HV: KVM Steal time implementation

2011-06-14 Thread Glauber Costa
On 06/14/2011 04:45 AM, Gleb Natapov wrote: On Mon, Jun 13, 2011 at 07:31:33PM -0400, Glauber Costa wrote: To implement steal time, we need the hypervisor to pass the guest information about how much time was spent running other processes outside the VM. This is per-vcpu, and using the kvmclock

Re: Why doesn't Intel e1000 NIC work correctly in Windows XP?

2011-06-14 Thread Alex Williamson
On Tue, 2011-06-14 at 16:11 +0800, Flypen CloudMe wrote: > Hi, > > I use Redhat Enterprise Linux 6, and use the KVM that is released by > Redhat officially. The kernel version is 2.6.32-71.el6.x86_64. > > It seems that the IRQs are conflicted after reboot. The NIC and the > SCSI controller have t

Re: [PATCH v2 6/8] kvm tools: Add rwlock wrapper

2011-06-14 Thread Paul E. McKenney
On Tue, Jun 14, 2011 at 06:26:01PM -0400, Sasha Levin wrote: > Sorry for the delay on this. Actually, you might have had excellent timing on this one. Could you please try Shaohua Li's patch at: https://lkml.org/lkml/2011/6/14/20 This patch makes RCU much less prone to causing massive s

Re: [PATCH 05/10] wdt: remove unused variables

2011-06-14 Thread Isaku Yamahata
It seems that I overlooked the variable when pci id conversion. Acked-off-by: Isaku Yamahata On Tue, Jun 14, 2011 at 08:35:52PM +0300, Michael S. Tsirkin wrote: > Signed-off-by: Michael S. Tsirkin > --- > hw/wdt_i6300esb.c |3 --- > 1 files changed, 0 insertions(+), 3 deletions(-) > > di

Re: [PATCH 01/10] ppce500: move device/vendor/class id to qdev

2011-06-14 Thread Isaku Yamahata
On Tue, Jun 14, 2011 at 08:35:20PM +0300, Michael S. Tsirkin wrote: > Signed-off-by: Michael S. Tsirkin > --- > hw/ppce500_pci.c | 13 +++-- > 1 files changed, 3 insertions(+), 10 deletions(-) > > diff --git a/hw/ppce500_pci.c b/hw/ppce500_pci.c > index 069af96..fc11af4 100644 > --- a/

Re: [PATCH v2 6/8] kvm tools: Add rwlock wrapper

2011-06-14 Thread Sasha Levin
Sorry for the delay on this. On Sat, 2011-06-04 at 09:30 -0700, Paul E. McKenney wrote: > On Sat, Jun 04, 2011 at 09:26:15AM +0300, Sasha Levin wrote: > > On Fri, 2011-06-03 at 16:05 -0700, Paul E. McKenney wrote: > > > On Sat, Jun 04, 2011 at 01:54:45AM +0300, Sasha Levin wrote: > > > > On Fri, 2

Re: Unable to unload kvm-intel module

2011-06-14 Thread AP
On Tue, Jun 14, 2011 at 1:05 PM, Jan Kiszka wrote: > On 2011-06-14 20:30, AP wrote: >> On Tue, Jun 14, 2011 at 1:32 AM, Avi Kivity wrote: >>> On 06/13/2011 08:11 PM, AP wrote: On Sun, Jun 12, 2011 at 8:35 AM, Avi Kivity  wrote: >  On 06/11/2011 03:02 AM, AP wrote: >> >>  I a

Re: Unable to unload kvm-intel module

2011-06-14 Thread Jan Kiszka
On 2011-06-14 20:30, AP wrote: > On Tue, Jun 14, 2011 at 1:32 AM, Avi Kivity wrote: >> On 06/13/2011 08:11 PM, AP wrote: >>> >>> On Sun, Jun 12, 2011 at 8:35 AM, Avi Kivity wrote: On 06/11/2011 03:02 AM, AP wrote: > > I am building kvm as an external module against 2.6.38-8 (Ubuntu

Re: Unable to unload kvm-intel module

2011-06-14 Thread AP
On Tue, Jun 14, 2011 at 1:32 AM, Avi Kivity wrote: > On 06/13/2011 08:11 PM, AP wrote: >> >> On Sun, Jun 12, 2011 at 8:35 AM, Avi Kivity  wrote: >> >  On 06/11/2011 03:02 AM, AP wrote: >> >> >> >>  I am building kvm as an external module against 2.6.38-8 (Ubuntu 11.04 >> >>  kernel). >> > >> >  Wh

Re: [PATCH v2 00/11] KVM in-guest performance monitoring

2011-06-14 Thread David Ahern
On 06/14/2011 11:48 AM, David Ahern wrote: > On 06/14/2011 11:33 AM, David Ahern wrote: >> Avi: still no luck: >> [0.047996] Performance Events: unsupported p6 CPU model 0 no PMU >> driver, software events only. >> >> qemu-kvm next branch, ce5f0a588b740e8f28f46a6009e12cfa72edc51f with your >>

Re: [PATCH v2 00/11] KVM in-guest performance monitoring

2011-06-14 Thread David Ahern
On 06/14/2011 11:33 AM, David Ahern wrote: > Avi: still no luck: > [0.047996] Performance Events: unsupported p6 CPU model 0 no PMU > driver, software events only. > > qemu-kvm next branch, ce5f0a588b740e8f28f46a6009e12cfa72edc51f with your > perfmon cpuid change. Host and guest are both runni

Re: [PATCH 08/10] alpha: remove unused variable

2011-06-14 Thread Richard Henderson
On 06/14/2011 10:36 AM, Michael S. Tsirkin wrote: > Signed-off-by: Michael S. Tsirkin > --- > target-alpha/translate.c |7 ++- > 1 files changed, 6 insertions(+), 1 deletions(-) Acked-by: Richard Henderson r~ -- To unsubscribe from this list: send the line "unsubscribe kvm" in the bod

Re: [PATCH 07/10] alpha/translate: remve unused variables

2011-06-14 Thread Richard Henderson
On 06/14/2011 10:36 AM, Michael S. Tsirkin wrote: > Signed-off-by: Michael S. Tsirkin > --- > target-alpha/translate.c |3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) Acked-by: Richard Henderson r~ -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body o

[PATCH 09/10] exec: remove unused variable

2011-06-14 Thread Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin --- exec.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/exec.c b/exec.c index 81808f4..b784f08 100644 --- a/exec.c +++ b/exec.c @@ -1207,12 +1207,16 @@ static inline void tb_alloc_page(TranslationBlock *tb,

[PATCH 08/10] alpha: remove unused variable

2011-06-14 Thread Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin --- target-alpha/translate.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 5d7454c..936760c 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -1661,7

[PATCH 07/10] alpha/translate: remve unused variables

2011-06-14 Thread Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin --- target-alpha/translate.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index ad6c2ca..5d7454c 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -1663,7 +166

[PATCH 10/10] linux-user: remove unused variables

2011-06-14 Thread Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin --- linux-user/flatload.c | 10 ++ linux-user/linuxload.c | 25 + linux-user/main.c |6 +++--- linux-user/signal.c|5 - linux-user/syscall.c |6 -- 5 files changed, 10 insertions(+), 42 deletions

[PATCH 06/10] kvm: remove unused variables

2011-06-14 Thread Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin --- hw/virtio-pci.h |8 +--- target-i386/kvm.c |3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/hw/virtio-pci.h b/hw/virtio-pci.h index a4b5fd3..b518917 100644 --- a/hw/virtio-pci.h +++ b/hw/virtio-pci.h @@ -37,7 +37,9 @@ typed

[PATCH 05/10] wdt: remove unused variables

2011-06-14 Thread Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin --- hw/wdt_i6300esb.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/hw/wdt_i6300esb.c b/hw/wdt_i6300esb.c index bd57fd3..53786ce 100644 --- a/hw/wdt_i6300esb.c +++ b/hw/wdt_i6300esb.c @@ -381,7 +381,6 @@ static const VMStateDescriptio

[PATCH 04/10] lsi53c895a: remove unused variables

2011-06-14 Thread Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin --- hw/lsi53c895a.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index 3b75467..940b43a 100644 --- a/hw/lsi53c895a.c +++ b/hw/lsi53c895a.c @@ -889,7 +889,6 @@ static void lsi_do_msgout(LSIState *s)

[PATCH 02/10] usb-ehci: move device/vendor/class id to qdev

2011-06-14 Thread Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin --- hw/usb-ehci.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index f63519e..4d6989a 100644 --- a/hw/usb-ehci.c +++ b/hw/usb-ehci.c @@ -1945,6 +1945,10 @@ static PCIDeviceInfo ehci_info = { .

[PATCH 03/10] usb-ehci: remove unused variables

2011-06-14 Thread Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin --- hw/usb-ehci.c | 10 +- 1 files changed, 1 insertions(+), 9 deletions(-) diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index 4d6989a..c20ee22 100644 --- a/hw/usb-ehci.c +++ b/hw/usb-ehci.c @@ -523,11 +523,8 @@ static void ehci_detach(USBPort *port) st

[PATCH 01/10] ppce500: move device/vendor/class id to qdev

2011-06-14 Thread Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin --- hw/ppce500_pci.c | 13 +++-- 1 files changed, 3 insertions(+), 10 deletions(-) diff --git a/hw/ppce500_pci.c b/hw/ppce500_pci.c index 069af96..fc11af4 100644 --- a/hw/ppce500_pci.c +++ b/hw/ppce500_pci.c @@ -304,20 +304,13 @@ static int e500_pcihos

[PATCH 00/10] qemu: remove set but unused variables

2011-06-14 Thread Michael S. Tsirkin
Switched to FC15 and qemu build with -Werror fails. The reason is that with gcc 4.6.0, -Werror makes the build fail on variables that are set but never used. XXX: In function ‘xxx’: XXX:XXX:XX: error: variable ‘xx’ set but not used [-Werror=unused-but-set-variable] The following patchset removes s

Re: [PATCH v2 00/11] KVM in-guest performance monitoring

2011-06-14 Thread David Ahern
On 06/14/2011 11:24 AM, Jan Kiszka wrote: > On 2011-06-14 19:15, David Ahern wrote: >> On 06/14/2011 02:36 AM, Avi Kivity wrote: >>> On 06/13/2011 10:55 PM, David Ahern wrote: On 06/13/2011 07:34 AM, Avi Kivity wrote: > This patchset exposes an emulated version 1 architectural performan

Re: [PATCH v2 00/11] KVM in-guest performance monitoring

2011-06-14 Thread Jan Kiszka
On 2011-06-14 19:15, David Ahern wrote: > On 06/14/2011 02:36 AM, Avi Kivity wrote: >> On 06/13/2011 10:55 PM, David Ahern wrote: >>> On 06/13/2011 07:34 AM, Avi Kivity wrote: This patchset exposes an emulated version 1 architectural performance monitoring unit to KVM guests. The PMU i

Re: [PATCH v2 00/11] KVM in-guest performance monitoring

2011-06-14 Thread David Ahern
On 06/14/2011 02:36 AM, Avi Kivity wrote: > On 06/13/2011 10:55 PM, David Ahern wrote: >> On 06/13/2011 07:34 AM, Avi Kivity wrote: >> > This patchset exposes an emulated version 1 architectural performance >> > monitoring unit to KVM guests. The PMU is emulated using perf_events, >> > so the h

[PATCH 3/3] KVM: MMU: Use helpers to clean up walk_addr_generic()

2011-06-14 Thread Takuya Yoshikawa
From: Takuya Yoshikawa Introduce two new helpers: set_accessed_bit() and is_last_gpte(). These names were suggested by Ingo and Avi. Cc: Ingo Molnar Signed-off-by: Takuya Yoshikawa --- arch/x86/kvm/paging_tmpl.h | 57 --- 1 files changed, 42 insertio

[PATCH 2/3] KVM: MMU: Rename the walk label in walk_addr_generic()

2011-06-14 Thread Takuya Yoshikawa
From: Takuya Yoshikawa The current name does not explain the meaning well. So give it a better name "retry_walk" to show that we are retrying the walk again. This was suggested by Ingo Molnar. Cc: Ingo Molnar Signed-off-by: Takuya Yoshikawa --- arch/x86/kvm/paging_tmpl.h |6 +++--- 1 fi

[PATCH v2 1/3] KVM: MMU: Clean up the error handling of walk_addr_generic()

2011-06-14 Thread Takuya Yoshikawa
From: Takuya Yoshikawa Avoid two step jump to the error handling code. This eliminates the use of the variables present and rsvd_fault. We also use the const type qualifier to show that write/user/fetch_fault do not change in the function. Both of these were suggested by Ingo Molnar. Cc: Ingo

Re: virtio scsi host draft specification, v3

2011-06-14 Thread Stefan Hajnoczi
On Tue, Jun 14, 2011 at 9:39 AM, Hannes Reinecke wrote: > On 06/10/2011 04:35 PM, Paolo Bonzini wrote: >>> >>> If requests are placed on arbitrary queues you'll inevitably run on >>> locking issues to ensure strict request ordering. >>> I would add here: >>> >>> If a device uses more than one queu

RE: Why doesn't Intel e1000 NIC work correctly in Windows XP?

2011-06-14 Thread Decker, Schorschi
Is IRQ balancing enabled on at BIOS level? Schorschi Decker VP; Sr. Consultant Engineer ECT&O Emerging Technologies / Virtualization Platform Engineering Team Bank of America Office 213-345-4714 -Original Message- From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On

Re: virtio scsi host draft specification, v3

2011-06-14 Thread Hannes Reinecke
On 06/12/2011 09:51 AM, Michael S. Tsirkin wrote: On Fri, Jun 10, 2011 at 02:55:35PM +0200, Hannes Reinecke wrote: Device operation: request queues The driver queues requests to an arbitrary request queue, and they are used by the device on that same queue. Wh

Re: [PATCH V7 0/4 net-next] macvtap/vhost TX zero-copy support

2011-06-14 Thread Michael S. Tsirkin
On Sat, May 28, 2011 at 12:14:37PM -0700, Shirley Ma wrote: > This patchset add supports for TX zero-copy between guest and host > kernel through vhost. It significantly reduces CPU utilization on the > local host on which the guest is located (It reduced about 50% CPU usage > for single stream tes

Re: [PATCH 4/7] KVM-GST: Add a pv_ops stub for steal time

2011-06-14 Thread Rik van Riel
On 06/13/2011 07:31 PM, Glauber Costa wrote: This patch adds a function pointer in one of the many paravirt_ops structs, to allow guests to register a steal time function. Signed-off-by: Glauber Costa CC: Rik van Riel CC: Jeremy Fitzhardinge CC: Peter Zijlstra CC: Avi Kivity CC: Anthony Liguori

Re: [Qemu-devel] KVM call agenda for June 14

2011-06-14 Thread Anthony Liguori
On 06/13/2011 07:40 AM, Juan Quintela wrote: Please send in any agenda items you are interested in covering. - 0.15 release - guest additions (virt-agent next steps) Regards, Anthony Liguori thanks, -juan -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body o

Re: [PATCH] qemu-img: Add nocache command line option

2011-06-14 Thread Avi Kivity
On 06/14/2011 03:09 PM, Federico Simoncelli wrote: qemu-img currently writes images using writeback and filling up the cache buffers which are then flushed by the kernel preventing other processes from accessing the storage. This is particularly bad in cluster environments where time-based algori

Re: [PATCH] Enable ERMS feature support for KVM

2011-06-14 Thread Avi Kivity
On 06/14/2011 10:19 AM, Yang, Wei wrote: This patch exposes ERMS feature to KVM guests. The REP MOVSB/STOSB instruction can enhance fast strings attempts to move as much of the data with larger size load/stores as possible. Applied, thanks. -- error compiling committee.c: too many arguments

Re: [PATCH 0/3] Enable RDWRGSFS feature support for KVM

2011-06-14 Thread Avi Kivity
On 06/14/2011 03:30 PM, Avi Kivity wrote: On 06/14/2011 03:10 PM, Yang, Wei wrote: This patch enalbes RDWRGSFS feature to KVM guests. Write/read FS/GS base instructions enable user level code to read/write FS& GS segment base registers for thread local storage. Patches look good, but someth

Re: [PATCH 0/3] Enable RDWRGSFS feature support for KVM

2011-06-14 Thread Avi Kivity
On 06/14/2011 03:10 PM, Yang, Wei wrote: This patch enalbes RDWRGSFS feature to KVM guests. Write/read FS/GS base instructions enable user level code to read/write FS& GS segment base registers for thread local storage. Patches look good, but something appears missing - usually when an inst

Re: [PATCH 3/7] KVM-HV: KVM Steal time implementation

2011-06-14 Thread Rik van Riel
On 06/13/2011 07:31 PM, Glauber Costa wrote: To implement steal time, we need the hypervisor to pass the guest information about how much time was spent running other processes outside the VM. This is per-vcpu, and using the kvmclock structure for that is an abuse we decided not to make. In this

[PATCH 3/3] Expose RDWRGSFS bit to KVM guests

2011-06-14 Thread Yang, Wei
This patch exposes RDWRGSFS bit to KVM guests. Signed-off-by: Yang, Wei --- arch/x86/kvm/x86.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 59d25ce..357e63a 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -2

[PATCH 2/3] Add RDWRGSFS support when setting CR4

2011-06-14 Thread Yang, Wei
This patch adds RDWRGSFS support when setting CR4. Signed-off-by: Yang, Wei --- arch/x86/kvm/x86.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index ff4623b..59d25ce 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/

[PATCH 1/3] Remove RDWRGSFS bit from CR4_RESERVED_BITS

2011-06-14 Thread Yang, Wei
This patch removes RDWRGSFS bit from CR4_RESERVED_BITS. Signed-off-by: Yang, Wei --- arch/x86/include/asm/kvm_host.h|2 +- arch/x86/include/asm/processor-flags.h |1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/incl

[PATCH 0/3] Enable RDWRGSFS feature support for KVM

2011-06-14 Thread Yang, Wei
This patch enalbes RDWRGSFS feature to KVM guests. Write/read FS/GS base instructions enable user level code to read/write FS & GS segment base registers for thread local storage. Signed-off-by: Yang, Wei --- arch/x86/include/asm/kvm_host.h|2 +- arch/x86/include/asm/processor-fla

[PATCH] qemu-img: Add nocache command line option

2011-06-14 Thread Federico Simoncelli
qemu-img currently writes images using writeback and filling up the cache buffers which are then flushed by the kernel preventing other processes from accessing the storage. This is particularly bad in cluster environments where time-based algorithms might be in place and accessing the storage with

Re: [PATCH 03/12] Switch build system to accompanied kernel headers

2011-06-14 Thread Jan Kiszka
On 2011-06-14 13:28, Alexander Graf wrote: > > On 14.06.2011, at 13:21, Jan Kiszka wrote: > >> On 2011-06-14 13:11, Alexander Graf wrote: >>> >>> On 08.06.2011, at 16:10, Jan Kiszka wrote: >>> >>> This helps reducing our build-time checks for feature support in the >>> available Linux kernel head

Re: [PATCH 03/12] Switch build system to accompanied kernel headers

2011-06-14 Thread Alexander Graf
On 14.06.2011, at 13:21, Jan Kiszka wrote: > On 2011-06-14 13:11, Alexander Graf wrote: >> >> On 08.06.2011, at 16:10, Jan Kiszka wrote: >> >> This helps reducing our build-time checks for feature support in the >> available Linux kernel headers. And it helps users that do not have >> sufficien

Re: [PATCH 07/12] kvm: Drop KVM_CAP build dependencies

2011-06-14 Thread Alexander Graf
On 14.06.2011, at 13:19, Jan Kiszka wrote: > On 2011-06-14 13:17, Alexander Graf wrote: >> >> On 14.06.2011, at 13:07, Jan Kiszka wrote: >> >>> On 2011-06-14 13:05, Alexander Graf wrote: On 08.06.2011, at 16:11, Jan Kiszka wrote: > No longer needed with accompanied kernel h

Re: [PATCH 03/12] Switch build system to accompanied kernel headers

2011-06-14 Thread Jan Kiszka
On 2011-06-14 13:11, Alexander Graf wrote: > > On 08.06.2011, at 16:10, Jan Kiszka wrote: > > This helps reducing our build-time checks for feature support in the > available Linux kernel headers. And it helps users that do not have > sufficiently recent headers installed on their build machine.

Re: [PATCH 07/12] kvm: Drop KVM_CAP build dependencies

2011-06-14 Thread Jan Kiszka
On 2011-06-14 13:17, Alexander Graf wrote: > > On 14.06.2011, at 13:07, Jan Kiszka wrote: > >> On 2011-06-14 13:05, Alexander Graf wrote: >>> >>> On 08.06.2011, at 16:11, Jan Kiszka wrote: >>> No longer needed with accompanied kernel headers. We are only left with build dependencies tha

Re: [PATCH 07/12] kvm: Drop KVM_CAP build dependencies

2011-06-14 Thread Alexander Graf
On 14.06.2011, at 13:07, Jan Kiszka wrote: > On 2011-06-14 13:05, Alexander Graf wrote: >> >> On 08.06.2011, at 16:11, Jan Kiszka wrote: >> >>> No longer needed with accompanied kernel headers. We are only left with >>> build dependencies that are controlled by kvm arch headers. >> >> This sho

Re: [PATCH 07/12] kvm: Drop KVM_CAP build dependencies

2011-06-14 Thread Jan Kiszka
On 2011-06-14 13:05, Alexander Graf wrote: > > On 08.06.2011, at 16:11, Jan Kiszka wrote: > >> No longer needed with accompanied kernel headers. We are only left with >> build dependencies that are controlled by kvm arch headers. > > This should completely rule out all CAPs right? IIRC, all CAPs

Re: [PATCH 09/12] kvm: ppc: Drop KVM_CAP build dependencies

2011-06-14 Thread Alexander Graf
On 08.06.2011, at 16:11, Jan Kiszka wrote: > No longer needed with accompanied kernel headers. What a nice code cleanup. Reviewed-by: Alexander Graf -- 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: [PATCH 05/12] kvm: ppc: Drop CONFIG_KVM_PPC_PVR

2011-06-14 Thread Alexander Graf
On 08.06.2011, at 16:10, Jan Kiszka wrote: > Required header support is now unconditionally available. Looks good to me :) Reviewed-by: Alexander Graf Alex -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH 07/12] kvm: Drop KVM_CAP build dependencies

2011-06-14 Thread Alexander Graf
On 08.06.2011, at 16:11, Jan Kiszka wrote: > No longer needed with accompanied kernel headers. We are only left with > build dependencies that are controlled by kvm arch headers. This should completely rule out all CAPs right? IIRC, all CAPs are defined in generic code, so we don't get number o

Re: [PATCH 6/7] KVM-GST: adjust scheduler cpu power

2011-06-14 Thread Peter Zijlstra
On Mon, 2011-06-13 at 19:31 -0400, Glauber Costa wrote: > @@ -1981,12 +1987,29 @@ static void update_rq_clock_task(struct rq > *rq, s64 delta) > > rq->prev_irq_time += irq_delta; > delta -= irq_delta; > +#endif > +#ifdef CONFIG_PARAVIRT_TIME_ACCOUNTING > + if (static_branch(

Re: [PATCH 5/7] KVM-GST: KVM Steal time accounting

2011-06-14 Thread Peter Zijlstra
On Mon, 2011-06-13 at 19:31 -0400, Glauber Costa wrote: > +static inline int touch_steal_time(int is_idle) > +{ > + u64 steal, st = 0; > + > + if (static_branch(¶virt_steal_enabled)) { > + > + steal = paravirt_steal_clock(smp_processor_id()); > + > + steal -=

Re: [PATCH v2 08/11] KVM: VMX: Intercept RDPMC

2011-06-14 Thread Ingo Molnar
* Avi Kivity wrote: > On 06/13/2011 08:38 PM, Ingo Molnar wrote: > >> > >> I should have known that. Is there some git magic I can use to > >> avoid cloning yet another tree (I already have Ingo's tree for > >> perf-core and perf-urgent along with Linus' tree)? > > > > You can use 'git remote

Re: virtio scsi host draft specification, v3

2011-06-14 Thread Hannes Reinecke
On 06/10/2011 04:35 PM, Paolo Bonzini wrote: If requests are placed on arbitrary queues you'll inevitably run on locking issues to ensure strict request ordering. I would add here: If a device uses more than one queue it is the responsibility of the device to ensure strict request ordering. Ap

Re: [PATCH v2 00/11] KVM in-guest performance monitoring

2011-06-14 Thread Avi Kivity
On 06/13/2011 10:55 PM, David Ahern wrote: On 06/13/2011 07:34 AM, Avi Kivity wrote: > This patchset exposes an emulated version 1 architectural performance > monitoring unit to KVM guests. The PMU is emulated using perf_events, > so the host kernel can multiplex host-wide, host-user, and the

Re: [PATCH v2 08/11] KVM: VMX: Intercept RDPMC

2011-06-14 Thread Avi Kivity
On 06/13/2011 08:38 PM, Ingo Molnar wrote: > > I should have known that. Is there some git magic I can use to > avoid cloning yet another tree (I already have Ingo's tree for > perf-core and perf-urgent along with Linus' tree)? You can use 'git remote add kvm ...' and then 'git remote update'

Re: [PATCH v2 05/11] KVM: Expose a version 1 architectural PMU to guests

2011-06-14 Thread Avi Kivity
On 06/13/2011 09:10 PM, David Ahern wrote: On 06/13/2011 07:35 AM, Avi Kivity wrote: > diff --git a/arch/x86/kvm/pmu.c b/arch/x86/kvm/pmu.c > new file mode 100644 > index 000..763e763 > --- /dev/null > +++ b/arch/x86/kvm/pmu.c > @@ -0,0 +1,255 @@ > +/* > + * Kernel-based Virtual Machi

Re: Unable to unload kvm-intel module

2011-06-14 Thread Avi Kivity
On 06/13/2011 08:11 PM, AP wrote: On Sun, Jun 12, 2011 at 8:35 AM, Avi Kivity wrote: > On 06/11/2011 03:02 AM, AP wrote: >> >> I am building kvm as an external module against 2.6.38-8 (Ubuntu 11.04 >> kernel). > > Why? I did not want move to the new kernel from kvm.git. I generally find t

Re: [PATCH][uq/master] kvm: x86: Save/restore FPU OP, IP and DP

2011-06-14 Thread Jan Kiszka
On 2011-06-14 10:23, Avi Kivity wrote: > On 06/14/2011 09:10 AM, Jan Kiszka wrote: >> On 2011-06-13 10:45, Avi Kivity wrote: >> > On 06/11/2011 12:23 PM, Jan Kiszka wrote: >> >> From: Jan Kiszka >> >> >> >> These FPU states are properly maintained by KVM but not yet by >> TCG. So >> >> far we u

Re: [PATCH][uq/master] kvm: x86: Save/restore FPU OP, IP and DP

2011-06-14 Thread Avi Kivity
On 06/14/2011 09:10 AM, Jan Kiszka wrote: On 2011-06-13 10:45, Avi Kivity wrote: > On 06/11/2011 12:23 PM, Jan Kiszka wrote: >> From: Jan Kiszka >> >> These FPU states are properly maintained by KVM but not yet by TCG. So >> far we unconditionally set them to 0 in the guest which may cause >>

Re: Better to use iSCSI on host or guest?

2011-06-14 Thread Avi Kivity
On 06/13/2011 10:00 PM, Emmanuel Noobadmin wrote: On 6/14/11, Avi Kivity wrote: > My gut feeling is to do iscsi in the host. I guess it's best to measure > though. Please post your findings if you do that. Any suggestions or recommendations as to how/what should I be measuring with? Whate

Re: Why doesn't Intel e1000 NIC work correctly in Windows XP?

2011-06-14 Thread Flypen CloudMe
Hi, I use Redhat Enterprise Linux 6, and use the KVM that is released by Redhat officially. The kernel version is 2.6.32-71.el6.x86_64. It seems that the IRQs are conflicted after reboot. The NIC and the SCSI controller have the same IRQ number. If I re-install the NIC driver, the IRQ number of t

Re: [PATCH 7/7] KVM-GST: KVM Steal time registration

2011-06-14 Thread Gleb Natapov
On Mon, Jun 13, 2011 at 07:31:37PM -0400, Glauber Costa wrote: > Register steal time within KVM. Everytime we sample the steal time > information, we update a local variable that tells what was the > last time read. We then account the difference. > > Signed-off-by: Glauber Costa > CC: Rik van Ri

Re: [PATCH 3/7] KVM-HV: KVM Steal time implementation

2011-06-14 Thread Gleb Natapov
On Mon, Jun 13, 2011 at 07:31:33PM -0400, Glauber Costa wrote: > To implement steal time, we need the hypervisor to pass the guest information > about how much time was spent running other processes outside the VM. > This is per-vcpu, and using the kvmclock structure for that is an abuse > we decid

[PATCH] Enable ERMS feature support for KVM

2011-06-14 Thread Yang, Wei
This patch exposes ERMS feature to KVM guests. The REP MOVSB/STOSB instruction can enhance fast strings attempts to move as much of the data with larger size load/stores as possible. Signed-off-by: Yang, Wei --- arch/x86/kvm/x86.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) d