Re: [Qemu-devel] [PATCH v2 0/2] Use kvm64/kvm32 when running under KVM

2010-08-25 Thread Sheng Yang
On Wednesday 28 July 2010 20:42:22 jes.soren...@redhat.com wrote: > From: Jes Sorensen > > This set of patches adds default CPU types to the PC compat > definitions, and patch #2 sets the CPU type to kvm64/kvm32 when > running under KVM. > > Long term we might want to qdev'ify the CPUs but I thi

[Qemu-devel] Re: KVM vs. PCI-E Function Level Reset (FLR) ...

2010-07-15 Thread Sheng Yang
On Thursday 15 July 2010 23:39:36 Casey Leedom wrote: > | From: Sheng Yang > | Date: Wednesday, July 14, 2010 06:31 pm > | > | On Thursday 15 July 2010 02:01:29 Casey Leedom wrote: > | > | From: Sheng Yang > | > | Date: Tuesday, July 13, 2010 05:53 pm > | > | (Ple

[Qemu-devel] [PATCH] qemu-kvm: Replace kvm_set/get_fpu() with upstream version.

2010-06-17 Thread Sheng Yang
Signed-off-by: Sheng Yang --- Would send out XSAVE patch after the upstream ones have been merged, since the patch would be affected by the merge. qemu-kvm-x86.c| 23 ++- qemu-kvm.c| 10 -- qemu-kvm.h| 30

[Qemu-devel] [PATCH 3/4] qemu: kvm: Enable XSAVE live migration support

2010-06-17 Thread Sheng Yang
Signed-off-by: Sheng Yang --- kvm-all.c | 21 +++ kvm.h |2 + target-i386/cpu.h |7 ++- target-i386/kvm.c | 139 - target-i386/machine.c | 20 +++ 5 files changed, 186 insertions(+), 3

[Qemu-devel] Re: [PATCH 4/4] qemu-kvm: Enable XSAVE live migration support

2010-06-17 Thread Sheng Yang
On Thursday 17 June 2010 15:41:43 Jan Kiszka wrote: > Sheng Yang wrote: > > Based on upstream xsave related fields. > > > > Signed-off-by: Sheng Yang > > --- > > > > qemu-kvm-x86.c | 95 > > ++

[Qemu-devel] [PATCH 3/4] qemu: kvm: Enable XSAVE live migration support

2010-06-17 Thread Sheng Yang
Signed-off-by: Sheng Yang --- target-i386/cpu.h |7 ++- target-i386/kvm.c | 139 - target-i386/machine.c | 20 +++ 3 files changed, 163 insertions(+), 3 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index

[Qemu-devel] [PATCH 4/4] qemu-kvm: Enable XSAVE live migration support

2010-06-17 Thread Sheng Yang
Based on upstream xsave related fields. Signed-off-by: Sheng Yang --- qemu-kvm-x86.c | 95 +++- qemu-kvm.c | 24 ++ qemu-kvm.h | 28 3 files changed, 146 insertions(+), 1 deletions(-) diff --git a

[Qemu-devel] [PATCH v4 0/4] XSAVE enabling in QEmu

2010-06-17 Thread Sheng Yang
Notice the first three patches applied to uq/master branch of qemu-kvm, the last one applied to qemu-kvm master branch. And the last one would only apply after the first three merged in master branch.

[Qemu-devel] [PATCH 1/4] qemu: kvm: Extend kvm_arch_get_supported_cpuid() to support index

2010-06-17 Thread Sheng Yang
Would use it later for XSAVE related CPUID. Signed-off-by: Sheng Yang --- kvm.h |2 +- target-i386/kvm.c | 19 +++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/kvm.h b/kvm.h index a28e7aa..7975e87 100644 --- a/kvm.h +++ b/kvm.h @@ -145,7

[Qemu-devel] [PATCH 2/4] qemu: Enable XSAVE related CPUID

2010-06-17 Thread Sheng Yang
We can support it in KVM now. The 0xd leaf is queried from KVM. Signed-off-by: Sheng Yang --- target-i386/cpuid.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index 99d1f44..ab6536b 100644 --- a/target

[Qemu-devel] [PATCH 3/4] qemu: kvm: Enable XSAVE live migration support

2010-06-17 Thread Sheng Yang
Signed-off-by: Sheng Yang --- target-i386/cpu.h |5 ++ target-i386/kvm.c | 134 + target-i386/machine.c | 20 +++ 3 files changed, 159 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index

[Qemu-devel] Re: [PATCH v3] qemu: kvm: Enable XSAVE live migration support

2010-06-16 Thread Sheng Yang
On Thursday 17 June 2010 00:05:44 Marcelo Tosatti wrote: > On Wed, Jun 16, 2010 at 05:48:46PM +0200, Jan Kiszka wrote: > > Marcelo Tosatti wrote: > > > On Fri, Jun 11, 2010 at 12:36:49PM +0800, Sheng Yang wrote: > > >> Signed-off-by: Sheng Yang > > &

[Qemu-devel] Re: [PATCH 2/3] qemu: Enable XSAVE related CPUID

2010-06-16 Thread Sheng Yang
On Thursday 10 June 2010 11:31:02 Sheng Yang wrote: > We can support it in KVM now. The 0xd leaf is queried from KVM. Hi Marcelo & Avi How about patch 1 and 2 in this series? They are used to enable XSAVE cpuid. -- regards Yang

[Qemu-devel] [PATCH v3] qemu: kvm: Enable XSAVE live migration support

2010-06-10 Thread Sheng Yang
Signed-off-by: Sheng Yang --- qemu-kvm-x86.c| 109 - qemu-kvm.c| 24 +++ qemu-kvm.h| 28 + target-i386/cpu.h |5 ++ target-i386/kvm.c |2 + target-i386/machine.c | 20

[Qemu-devel] [PATCH 3/3] qemu: kvm: Enable XSAVE live migration support

2010-06-09 Thread Sheng Yang
Signed-off-by: Sheng Yang --- qemu-kvm-x86.c| 114 qemu-kvm.c| 24 ++ qemu-kvm.h| 28 target-i386/cpu.h |6 +++ target-i386/machine.c | 21 + 5 files changed, 174

[Qemu-devel] [PATCH 2/3] qemu: Enable XSAVE related CPUID

2010-06-09 Thread Sheng Yang
We can support it in KVM now. The 0xd leaf is queried from KVM. Signed-off-by: Sheng Yang --- target-i386/cpuid.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index fb78061..26e4054 100644 --- a/target

[Qemu-devel] [PATCH 1/3] qemu: kvm: Extend kvm_arch_get_supported_cpuid() to support index

2010-06-09 Thread Sheng Yang
Would use it later for XSAVE related CPUID. Signed-off-by: Sheng Yang --- kvm.h |2 +- target-i386/kvm.c | 19 +++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/kvm.h b/kvm.h index aab5118..16b06a4 100644 --- a/kvm.h +++ b/kvm.h @@ -152,7

[Qemu-devel] Re: [PATCH] qemu: Enable XSAVE related CPUID

2010-05-27 Thread Sheng Yang
On Thursday 27 May 2010 20:56:17 Avi Kivity wrote: > On 05/27/2010 12:50 PM, Sheng Yang wrote: > > We can support it in KVM now. The initial values are the minimal > > requirement of XSAVE capable processor. > > > > Signed-off-by: Sheng Yang > > --- >

[Qemu-devel] [PATCH] qemu: kvm: Enable XSAVE live migration support

2010-05-27 Thread Sheng Yang
Signed-off-by: Sheng Yang --- qemu-kvm-x86.c| 77 + qemu-kvm.c| 12 +++ qemu-kvm.h| 14 + target-i386/cpu.h |5 +++ target-i386/machine.c | 20 + 5 files changed, 109

[Qemu-devel] [PATCH] qemu: Enable XSAVE related CPUID

2010-05-27 Thread Sheng Yang
We can support it in KVM now. The initial values are the minimal requirement of XSAVE capable processor. Signed-off-by: Sheng Yang --- target-i386/cpuid.c | 32 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386

[Qemu-devel] [PATCH v5] KVM: VMX: Enable XSAVE/XRSTORE for guest

2010-05-26 Thread Sheng Yang
From: Dexuan Cui This patch enable guest to use XSAVE/XRSTORE instructions. We assume that host_xcr0 would use all possible bits that OS supported. And we loaded xcr0 in the same way we handled fpu - do it as late as we can. Signed-off-by: Dexuan Cui Signed-off-by: Sheng Yang --- I've

[Qemu-devel] [PATCH v2] KVM: VMX: Enable XSAVE/XRSTORE for guest

2010-05-19 Thread Sheng Yang
From: Dexuan Cui Enable XSAVE/XRSTORE for guest. Change from V1: 1. Use FPU API. 2. Fix CPUID issue. 3. Save/restore all possible guest xstate fields when switching. Because we don't know which fields guest has already touched. Signed-off-by: Dexuan Cui Signed-off-by: Sheng Yang ---

[Qemu-devel] [PATCH] qemu-kvm: Enable xsave related CPUID

2010-05-19 Thread Sheng Yang
Signed-off-by: Sheng Yang --- target-i386/cpuid.c | 32 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index eebf038..21e94f3 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -1067,6

[Qemu-devel] Re: Completing big real mode emulation

2010-03-24 Thread Sheng Yang
On Saturday 20 March 2010 23:00:49 Alexander Graf wrote: > Am 20.03.2010 um 15:02 schrieb Mohammed Gamal : > > On Sat, Mar 20, 2010 at 3:18 PM, Avi Kivity wrote: > >> On 03/20/2010 10:55 AM, Alexander Graf wrote: > > I'd say that a GSoC project would rather focus on making a guest > > OS w

Re: [Qemu-devel] [PATCH v2 resend 0/4] block: more read-only changes, related to backing files

2010-02-04 Thread Sheng Yang
On Friday 05 February 2010 06:04:25 Naphtali Sprei wrote: > This is version 2. The change between previous patch (only 3/4) is the > order of closing/re-opening the image. > > Naphtali Sprei (4): > Add open_flags to BlockDriverState Will be used later > qemu-img: Fix qemu-img can't create qco

Re: [Qemu-devel] [PATCH v2 resend 2/4] qemu-img: Fix qemu-img can't create qcow image based on read-only image

2010-02-04 Thread Sheng Yang
On Friday 05 February 2010 06:04:27 Naphtali Sprei wrote: > Open image file read-only where possible > Patch originally written by Sheng Yang > Signed-off-by: Sheng Yang > Signed-off-by: Naphtali Sprei -- regards Yang, Sheng > --- > qemu-img.c | 15 ++- >

[Qemu-devel] Re: [PATCH 0/4] Fix printf calls embedding preprocessor directives

2010-02-04 Thread Sheng Yang
On Thursday 04 February 2010 23:49:55 Paolo Bonzini wrote: > Patch 1 is the same I sent earlier. Patches 2 and 3/4 fix the > other two problems by Sheng (tip: next time use "make -k" and > report all problems in a single message). > > Paolo Bonzini (4): > qemu-img: avoid preprocessor directives

[Qemu-devel] Re: [PATCH] qemu-img: avoid preprocessor directives in a printf call

2010-02-04 Thread Sheng Yang
On Thursday 04 February 2010 21:29:40 Paolo Bonzini wrote: > Other choices include using "(printf)", but this one is not bad in > terms of readability. This works well. :) Acked-by: Sheng Yang > > Signed-off-by: Paolo Bonzini And there is two more... One is: readline.

[Qemu-devel] "Enable _FORTIFY_SOURCE=2" result in building failure for qemu-img.c

2010-02-03 Thread Sheng Yang
Got this building failure: In file included from qemu-img.c:68: qemu-img-cmds.h:22:1: error: unterminated argument list invoking macro "printf"

[Qemu-devel] [PATCH v2] qemu-img: Fix qemu-img can't create qcow image based on read-only image

2010-01-28 Thread Sheng Yang
Commit 03cbdac7 "Disable fall-back to read-only when cannot open drive's file for read-write" result in read-only image can't be used as backed image in qemu-img. Cc: Naphtali Sprei Signed-off-by: Sheng Yang --- qemu-img.c | 15 ++- 1 files changed, 10 insert

Re: [Qemu-devel] [PATCH] Fix qemu-img can't create qcow image based on read-only image

2010-01-28 Thread Sheng Yang
On Thursday 28 January 2010 17:17:22 Kevin Wolf wrote: > Am 28.01.2010 06:22, schrieb Sheng Yang: > > Commit 03cbdac7 "Disable fall-back to read-only when cannot open drive's > > file for read-write" result in read-only image can't be used as backed > >

[Qemu-devel] [PATCH] Fix qemu-img can't create qcow image based on read-only image

2010-01-27 Thread Sheng Yang
Commit 03cbdac7 "Disable fall-back to read-only when cannot open drive's file for read-write" result in read-only image can't be used as backed image in qemu-img. CC: Naphtali Sprei Signed-off-by: Sheng Yang --- This issue blocked our QA's KVM nightly test. But in fact

[Qemu-devel] [PATCH v3][uqmaster] kvm: Flush coalesced MMIO buffer periodly

2010-01-26 Thread Sheng Yang
shing coalesced MMIO buffer in VGA update handler. By this way, We don't need vcpu explicit exit to QEmu to handle this issue. Signed-off-by: Sheng Yang --- cpu-all.h |2 ++ exec.c|6 ++ kvm-all.c | 23 +++ kvm.h |1 + vl.c |2 ++

[Qemu-devel] Re: [PATCH v2][uqmaster] kvm: Flush coalesced MMIO buffer periodly

2010-01-26 Thread Sheng Yang
On Tue, Jan 26, 2010 at 10:59:17AM +0100, Alexander Graf wrote: > > On 26.01.2010, at 10:41, Sheng Yang wrote: > > > --- a/kvm-all.c > > +++ b/kvm-all.c > > @@ -59,6 +59,7 @@ struct KVMState > > int vmfd; > > int regs_modified; >

[Qemu-devel] [PATCH v2][uqmaster] kvm: Flush coalesced MMIO buffer periodly

2010-01-26 Thread Sheng Yang
shing coalesced MMIO buffer in VGA update handler. By this way, We don't need vcpu explicit exit to QEmu to handle this issue. Signed-off-by: Sheng Yang --- cpu-all.h |2 ++ exec.c|6 ++ kvm-all.c | 21 + kvm.h |1 + vl.c |2 ++ 5 files ch