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 jes.soren...@redhat.com 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

[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 sh...@linux.intel.com | Date: Wednesday, July 14, 2010 06:31 pm | | On Thursday 15 July 2010 02:01:29 Casey Leedom wrote: | | From: Sheng Yang sh...@linux.intel.com | | Date: Tuesday, July 13, 2010 05:53 pm

[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 sh...@linux.intel.com --- 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

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

2010-06-17 Thread Sheng Yang
Signed-off-by: Sheng Yang sh...@linux.intel.com --- 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

[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 sh...@linux.intel.com --- 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

[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 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 sh...@linux.intel.com --- qemu-kvm-x86.c | 95 +++- qemu-kvm.c | 24 ++ qemu-kvm.h | 28 3 files changed, 146 insertions(+), 1

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

2010-06-17 Thread Sheng Yang
Signed-off-by: Sheng Yang sh...@linux.intel.com --- 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

[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 sh...@linux.intel.com --- qemu-kvm-x86.c | 95 +++- qemu-kvm.c | 24

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

2010-06-17 Thread Sheng Yang
Signed-off-by: Sheng Yang sh...@linux.intel.com --- 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

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

2010-06-17 Thread Sheng Yang
Signed-off-by: Sheng Yang sh...@linux.intel.com --- 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] 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, Sheng

[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 sh...@linux.intel.com --- qemu-kvm-x86.c

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

2010-06-10 Thread Sheng Yang
Signed-off-by: Sheng Yang sh...@linux.intel.com --- 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

[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 sh...@linux.intel.com --- 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

[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 sh...@linux.intel.com --- 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

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

2010-06-09 Thread Sheng Yang
Signed-off-by: Sheng Yang sh...@linux.intel.com --- 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

[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 Yangsh...@linux.intel.com --- target-i386/cpuid.c | 32

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

2010-05-26 Thread Sheng Yang
Signed-off-by: Sheng Yang sh...@linux.intel.com --- I've done a prototype of LM support, would send out tomorrow. But the test case in QEmu side seems got something wrong. I always got an segfault at: qemu-kvm/hw/fw_cfg.c:223 223 s-entries[arch][key].data = data; Haven't looked into it yet

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

2010-05-19 Thread Sheng Yang
Signed-off-by: Sheng Yang sh...@linux.intel.com --- 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

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

2010-05-19 Thread Sheng Yang
@intel.com Signed-off-by: Sheng Yang sh...@linux.intel.com --- arch/x86/include/asm/kvm_host.h |1 + arch/x86/include/asm/vmx.h |1 + arch/x86/kvm/vmx.c | 28 + arch/x86/kvm/x86.c | 85 +++--- 4 files changed, 108

[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 m.gamal...@gmail.com: On Sat, Mar 20, 2010 at 3:18 PM, Avi Kivity a...@redhat.com wrote: On 03/20/2010 10:55 AM, Alexander Graf wrote: I'd say that a GSoC project would rather focus on

[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 sh...@linux.intel.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com And there is two more... One

[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 in a

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 sh...@linux.intel.com Signed-off-by: Sheng Yang sh...@linux.intel.com Signed-off-by: Naphtali Sprei nsp...@redhat.com -- regards Yang, Sheng

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 qcow

[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

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 image in qemu-img. CC: Naphtali Sprei nsp

[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 nsp...@redhat.com Signed-off-by: Sheng Yang sh...@linux.intel.com --- qemu-img.c | 15 ++- 1 files

[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 nsp...@redhat.com Signed-off-by: Sheng Yang sh...@linux.intel.com --- This issue blocked our QA's KVM nightly test

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

2010-01-26 Thread Sheng Yang
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 sh...@linux.intel.com --- cpu-all.h |2 ++ exec.c|6 ++ kvm-all.c | 21 + kvm.h |1 + vl.c |2 ++ 5 files

[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; int coalesced_mmio; +struct kvm_coalesced_mmio_ring

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

2010-01-26 Thread Sheng Yang
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 sh...@linux.intel.com --- cpu-all.h |2 ++ exec.c|6 ++ kvm-all.c | 23 +++ kvm.h |1 + vl.c |2 ++ 5 files