Re: [RFC PATCH 3/7] [hyper-v] make Hyper-V option configurable.

2011-10-09 Thread Jan Kiszka
On 2011-10-09 20:52, Vadim Rozenfeld wrote: > --- > Makefile.target |1 + > configure | 11 +++ > 2 files changed, 12 insertions(+), 0 deletions(-) > > diff --git a/Makefile.target b/Makefile.target > index f84d8cb..3581480 100644 > --- a/Makefile.target > +++ b/Makefile.targe

Re: [RFC PATCH 1/7] [hyper-v] Add hyper-v parameters block.

2011-10-09 Thread Jan Kiszka
On 2011-10-09 20:52, Vadim Rozenfeld wrote: > --- > qemu-options.hx | 23 +++ > vl.c|2 ++ > 2 files changed, 25 insertions(+), 0 deletions(-) > > diff --git a/qemu-options.hx b/qemu-options.hx > index 3a13533..9f60059 100644 > --- a/qemu-options.hx > +++ b/q

Re: [RFC PATCH 0/7] Initial support for Microsoft Hyper-V

2011-10-09 Thread Jan Kiszka
On 2011-10-09 20:52, Vadim Rozenfeld wrote: > Enable some basic Hyper-V enlightenment functionalites, > including relaxed timing, spinlock, and virtual APIC. This targets uq/master, correct? Then you should CC qemu-devel on the next round. I think this series could also be distributed over 3 or

Re: [PATCH] qemu-kvm: fix improper nmi emulation

2011-10-09 Thread Jan Kiszka
On 2011-10-10 08:06, Lai Jiangshan wrote: > From: Kenji Kaneshige > > Currently, NMI interrupt is blindly sent to all the vCPUs when NMI > button event happens. This doesn't properly emulate real hardware on > which NMI button event triggers LINT1. Because of this, NMI is sent to > the processor

Re: [RFC PATCH 5/7] [hyper-v] hyper-v helper functions

2011-10-09 Thread Vadim Rozenfeld
On Sun, 2011-10-09 at 21:01 +0200, Alon Levy wrote: > On Sun, Oct 09, 2011 at 08:52:53PM +0200, Vadim Rozenfeld wrote: > > --- > > hyperv.c | 44 > > hyperv.h |7 +++ > > 2 files changed, 51 insertions(+), 0 deletions(-) > > > > diff --git a/

Re: [PATCH] kernel/kvm: fix improper nmi emulation

2011-10-09 Thread Jan Kiszka
On 2011-10-10 08:06, Lai Jiangshan wrote: > From: Kenji Kaneshige > > Currently, NMI interrupt is blindly sent to all the vCPUs when NMI > button event happens. This doesn't properly emulate real hardware on > which NMI button event triggers LINT1. Because of this, NMI is sent to > the processor

[PATCH 2/2] seabios: fix mptable nmi entry (was: Re: [Qemu-devel] [PATCH] qemu: Fix inject-nmi)

2011-10-09 Thread Lai Jiangshan
From: Kenji Kaneshige In the current seabios MP table description, NMI is connected only to BSP's LINT1. But usually NMI is connected to all the CPUs' LINT1 as indicated in MP specification. This patch changes seabios MP table to describe NMI is connected to all the CPUs' LINT1. Signed-off-by: K

[PATCH 1/2] seabios: Add Local APIC NMI Structure to ACPI MADT (was: Re: [Qemu-devel] [PATCH] qemu: Fix inject-nmi)

2011-10-09 Thread Lai Jiangshan
From: Kenji Kaneshige ACPI NMI Structure describes LINT pin (LINT0 or LINT1) information to which NMI is connected, and it is needed by OS to initialize local APIC. Signed-off-by: Kenji Kaneshige Reviewed-by: Lai Jiangshan --- src/acpi.c | 22 -- 1 file changed, 20 inser

[PATCH] qemu-kvm: fix improper nmi emulation (was: Re: [Qemu-devel] [PATCH] qemu: Fix inject-nmi)

2011-10-09 Thread Lai Jiangshan
From: Kenji Kaneshige Currently, NMI interrupt is blindly sent to all the vCPUs when NMI button event happens. This doesn't properly emulate real hardware on which NMI button event triggers LINT1. Because of this, NMI is sent to the processor even when LINT1 is maskied in LVT. For example, this c

[PATCH] kernel/kvm: fix improper nmi emulation (was: Re: [Qemu-devel] [PATCH] qemu: Fix inject-nmi)

2011-10-09 Thread Lai Jiangshan
From: Kenji Kaneshige Currently, NMI interrupt is blindly sent to all the vCPUs when NMI button event happens. This doesn't properly emulate real hardware on which NMI button event triggers LINT1. Because of this, NMI is sent to the processor even when LINT1 is maskied in LVT. For example, this c

Re: [PATCH] qemu: Fix inject-nmi

2011-10-09 Thread Lai Jiangshan
On 09/26/2011 04:21 PM, Avi Kivity wrote: > On 09/25/2011 08:22 PM, Jan Kiszka wrote: >> On 2011-09-25 16:07, Avi Kivity wrote: >> > On 09/23/2011 12:31 PM, Lai Jiangshan wrote: >> >> > Moreover: wrong indention. >> >> > >> >> > You know that this won't work for qemu-kvm with in-kernel irqc

Re: Qemu/KVM guest boots 2x slower with vhost_net

2011-10-09 Thread Reeted
On 10/05/11 01:12, Reeted wrote: . I found that virtual machines in my host booted 2x slower ... to the vhost_net presence ... Just a small update, Firstly: I cannot reproduce any slowness after boot by doing: # time /etc/init.d/chrony restart Restarting time daemon: Starting /usr/sbin/

Re: [RFC PATCH 5/7] [hyper-v] hyper-v helper functions

2011-10-09 Thread Alon Levy
On Sun, Oct 09, 2011 at 08:52:53PM +0200, Vadim Rozenfeld wrote: > --- > hyperv.c | 44 > hyperv.h |7 +++ > 2 files changed, 51 insertions(+), 0 deletions(-) > > diff --git a/hyperv.c b/hyperv.c > index a17f879..57915b9 100644 > --- a/hyperv

[RFC PATCH 7/7] [hyper-v] init hyper-v cpuid leafs

2011-10-09 Thread Vadim Rozenfeld
--- target-i386/kvm.c | 53 - 1 files changed, 52 insertions(+), 1 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 3840255..74fcc9a 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -29,6 +29,7 @@ #include "hw/pc

[RFC PATCH 6/7] [hyper-v] parse hyper-v parameters.

2011-10-09 Thread Vadim Rozenfeld
--- vl.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index a6d1fc0..d9d4547 100644 --- a/vl.c +++ b/vl.c @@ -3186,6 +3186,16 @@ int main(int argc, char **argv, char **envp) break; } case QEMU_OPTI

[RFC PATCH 5/7] [hyper-v] hyper-v helper functions

2011-10-09 Thread Vadim Rozenfeld
--- hyperv.c | 44 hyperv.h |7 +++ 2 files changed, 51 insertions(+), 0 deletions(-) diff --git a/hyperv.c b/hyperv.c index a17f879..57915b9 100644 --- a/hyperv.c +++ b/hyperv.c @@ -3,6 +3,10 @@ #include "qemu-option.h" #include "qemu-conf

[RFC PATCH 4/7] [hyper-v] hyper-v parameters

2011-10-09 Thread Vadim Rozenfeld
--- hyperv.c | 16 hyperv.h |2 ++ qemu-config.c | 19 +++ qemu-config.h |1 + 4 files changed, 38 insertions(+), 0 deletions(-) diff --git a/hyperv.c b/hyperv.c index 968ce89..a17f879 100644 --- a/hyperv.c +++ b/hyperv.c @@ -1,3 +1,19 @@ #i

[RFC PATCH 3/7] [hyper-v] make Hyper-V option configurable.

2011-10-09 Thread Vadim Rozenfeld
--- Makefile.target |1 + configure | 11 +++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/Makefile.target b/Makefile.target index f84d8cb..3581480 100644 --- a/Makefile.target +++ b/Makefile.target @@ -199,6 +199,7 @@ obj-$(CONFIG_VHOST_NET) += vhost.o obj-

[RFC PATCH 2/7] [hyper-v] add hyper-v placeholders.

2011-10-09 Thread Vadim Rozenfeld
--- hyperv.c |3 +++ hyperv.h | 10 ++ 2 files changed, 13 insertions(+), 0 deletions(-) create mode 100644 hyperv.c create mode 100644 hyperv.h diff --git a/hyperv.c b/hyperv.c new file mode 100644 index 000..968ce89 --- /dev/null +++ b/hyperv.c @@ -0,0 +1,3 @@ +#include "hyp

[RFC PATCH 1/7] [hyper-v] Add hyper-v parameters block.

2011-10-09 Thread Vadim Rozenfeld
--- qemu-options.hx | 23 +++ vl.c|2 ++ 2 files changed, 25 insertions(+), 0 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 3a13533..9f60059 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2483,6 +2483,29 @@ DEF("kvm-shadow-memory",

[RFC PATCH 0/7] Initial support for Microsoft Hyper-V

2011-10-09 Thread Vadim Rozenfeld
Enable some basic Hyper-V enlightenment functionalites, including relaxed timing, spinlock, and virtual APIC. Vadim Rozenfeld (7): [hyper-v] Add hyper-v parameters block. [hyper-v] add hyper-v placeholders. [hyper-v] make Hyper-V option configurable. [hyper-v] hyper-v parameters [hyper-

[PATCH] Update README example

2011-10-09 Thread Liu, Jinsong
>> >> This was recently changed, it now outputs to the serial port. >> >> Try >> >> >> qemu-system-x86_64 -device testdev,chardev=testlog -chardev >> file,id=testlog,path=apic.out -serial stdio -kernel ./x86/apic.flat >> >> > > Thanks Avi, I got test log as: > > enabling apic > paging enabl

RE: [PATCH] apic: test tsc deadline timer

2011-10-09 Thread Liu, Jinsong
Updated test case for kvm tsc deadline timer https://github.com/avikivity/kvm-unit-tests, as attached. Thanks, Jinsong = >From 2b476cf741b36da5df35cf2e8f7f9562e8245fcd Mon Sep 17 00:00:00 2001 From: Liu, Jinsong Date: Sun, 9 Oct 2011 22:45:39 +0800 Subject: [PATCH] apic: test ts

RE: [PATCH] apic: test tsc deadline timer

2011-10-09 Thread Liu, Jinsong
Avi Kivity wrote: > On 10/09/2011 12:05 PM, Liu, Jinsong wrote: >> Marcelo, >> >> I add test case for tsc deadline timer >> https://github.com/avikivity/kvm-unit-tests, as attached. >> >> According to the kvm-unit-tests README, I try to run >> qemu-system-x86_64 -device testdev,chardev=testlog -

Re: [PATCH v4 00/11] KVM: x86: optimize for writing guest page

2011-10-09 Thread Avi Kivity
On 10/09/2011 02:24 PM, Avi Kivity wrote: On 10/08/2011 06:06 AM, Xiao Guangrong wrote: On 10/07/2011 01:53 AM, Marcelo Tosatti wrote: > On Thu, Sep 22, 2011 at 04:52:40PM +0800, Xiao Guangrong wrote: >> This patchset is against https://github.com/avikivity/kvm.git next branch. >> >> In thi

Re: [PATCH v4 00/11] KVM: x86: optimize for writing guest page

2011-10-09 Thread Avi Kivity
On 10/08/2011 06:06 AM, Xiao Guangrong wrote: On 10/07/2011 01:53 AM, Marcelo Tosatti wrote: > On Thu, Sep 22, 2011 at 04:52:40PM +0800, Xiao Guangrong wrote: >> This patchset is against https://github.com/avikivity/kvm.git next branch. >> >> In this version, some changes come from Avi's comme

Re: [PATCH] apic: test tsc deadline timer

2011-10-09 Thread Avi Kivity
On 10/09/2011 12:05 PM, Liu, Jinsong wrote: Marcelo, I add test case for tsc deadline timer https://github.com/avikivity/kvm-unit-tests, as attached. According to the kvm-unit-tests README, I try to run qemu-system-x86_64 -device testdev,chardev=testlog -chardev file,id=testlog,path=apic.out

[PATCH] apic: test tsc deadline timer

2011-10-09 Thread Liu, Jinsong
Marcelo, I add test case for tsc deadline timer https://github.com/avikivity/kvm-unit-tests, as attached. According to the kvm-unit-tests README, I try to run qemu-system-x86_64 -device testdev,chardev=testlog -chardev file,id=testlog,path=apic.out -kernel ./x86/apic.flat but get nothing from t