RE: [PATCH v2 2/2] KVM: get rid of $(addprefix ../../../virt/kvm/, ...) in Makefiles

2013-05-14 Thread Zhang, Xiantao
tapov; Christoffer Dall; Zhang, Xiantao; Luck, Tony; > Yu, Fenghua; Alexander Graf; Benjamin Herrenschmidt; Christian Borntraeger; > Cornelia Huck > Subject: [PATCH v2 2/2] KVM: get rid of $(addprefix ../../../virt/kvm/, ...) > in > Makefiles > > As requested by the KVM ma

RE: [PATCH] KVM: ia64: remove unused variable in kvm_release_vm_pages()

2012-10-17 Thread Zhang, Xiantao
Acked-by: Xiantao Zhang > -Original Message- > From: Wei Yongjun [mailto:weiyj...@gmail.com] > Sent: Wednesday, October 17, 2012 11:04 PM > To: a...@redhat.com; mtosa...@redhat.com; Zhang, Xiantao; Luck, Tony; Yu, > Fenghua > Cc: yongjun_...@trendmicro.com.cn; kvm@vg

RE: [PATCH] KVM: ia64: define kvm_lapic_enabled() to fix a compile error

2010-09-29 Thread Zhang, Xiantao
Avi Kivity wrote: > On 09/27/2010 12:01 PM, Zhang, Xiantao wrote: >>> >>> Maybe we should make ia64 kvm depend on CONFIG_BROKEN. >>> >>> It has been "experimental" for quite a while. >> >> I don't think the kvm/ia64 is br

RE: [PATCH] KVM: ia64: define kvm_lapic_enabled() to fix a compile error

2010-09-27 Thread Zhang, Xiantao
Avi Kivity wrote: > On 09/27/2010 08:51 AM, Takuya Yoshikawa wrote: >> (2010/09/02 17:57), Avi Kivity wrote: >>> On 09/02/2010 11:55 AM, Takuya Yoshikawa wrote: The following patch commit 57ce1659316f4ca298919649f9b1b55862ac3826 KVM: x86: In DM_LOWEST, only deliver interrupts

RE: VM performance issue in KVM guests.

2010-04-18 Thread Zhang, Xiantao
Srivatsa Vaddagiri wrote: > On Thu, Apr 15, 2010 at 03:33:18PM +0200, Peter Zijlstra wrote: >> On Thu, 2010-04-15 at 11:18 +0300, Avi Kivity wrote: >>> >>> Certainly that has even greater potential for Linux guests. Note >>> that we spin on mutexes now, so we need to prevent preemption while >>>

RE: VM performance issue in KVM guests.

2010-04-15 Thread Zhang, Xiantao
Avi Kivity wrote: > On 04/14/2010 06:24 AM, Zhang, Xiantao wrote: >> >>>>> Spin loops need to be addressed first, they are known to kill >>>>> performance in overcommit situations. >>>>> >>>>> >>>> Even in overcomm

RE: VM performance issue in KVM guests.

2010-04-13 Thread Zhang, Xiantao
Avi Kivity wrote: > On 04/13/2010 03:50 AM, Zhang, Xiantao wrote: >> Avi Kivity wrote: >> >>> On 04/12/2010 05:04 AM, Zhang, Xiantao wrote: >>> >>>> >>>>> What was the performance hit? What was your I/O setup (image >>>>&g

RE: VM performance issue in KVM guests.

2010-04-12 Thread Zhang, Xiantao
Avi Kivity wrote: > On 04/12/2010 05:04 AM, Zhang, Xiantao wrote: >> >>> What was the performance hit? What was your I/O setup (image >>> format, using aio?) >>> >> The issue only happens when vcpu number is over-committed(e.g. >> vcpu/pcpu

RE: VM performance issue in KVM guests.

2010-04-11 Thread Zhang, Xiantao
Avi Kivity wrote: > (copying lkml and some scheduler folk) > > On 04/10/2010 11:16 AM, Zhang, Xiantao wrote: >> Hi, all >>We are working on the scalability work for KVM guests, and found >>one big issue exists in linux scheduler and it may impact guest's

VM performance issue in KVM guests.

2010-04-10 Thread Zhang, Xiantao
Hi, all We are working on the scalability work for KVM guests, and found one big issue exists in linux scheduler and it may impact guest's performance and scalability a lot for some special workloads running in VM. In the current Linux scheduler, there are some features to enhance App's per

RE: [Qemu-devel] Re: KVM call agenda for Mar 23

2010-03-24 Thread Zhang, Xiantao
Jes Sorensen wrote: > On 03/23/10 13:45, Anthony Liguori wrote: >> I don't think we can pull in: >> >> - extboot >> - ia64 >> - in-kernel pit[1] >> - associated command line options >> - device passthrough >> >> The question is, if we dropped those things, would people actually >> use qemu.git in

RE: [PATCH] KVM: remove redundant NULL tests

2010-01-16 Thread Zhang, Xiantao
Bill Davidsen wrote: > Roel Kluin wrote: >> kvm_get_exit_data() cannot return a NULL pointer. >> >> Signed-off-by: Roel Kluin >> --- >> arch/ia64/kvm/kvm_fw.c | 28 +--- >> 1 files changed, 13 insertions(+), 15 deletions(-) >> >> diff --git a/arch/ia64/kvm/kvm_fw.c b/a

RE: + kvm-ia64-dereference-of-null-pointer-in-set_pal_result.patch added to -mm tree

2010-01-13 Thread Zhang, Xiantao
Avi Kivity wrote: > On 01/13/2010 11:32 AM, Andrew Morton wrote: >> On Wed, 13 Jan 2010 11:22:39 +0200 Avi Kivity wrote: >> >> >>> On 01/13/2010 12:11 AM, a...@linux-foundation.org wrote: >>> Subject: kvm/ia64: dereference of NULL pointer in set_pal_result() From: Roel Kluin >>>

RE: [PATCH] qemu-kvm: fix ia64 build breakage

2009-12-13 Thread Zhang, Xiantao
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Wednesday, December 09, 2009 6:34 PM To: Zhang, Xiantao Cc: a...@redhat.com; kvm-i...@vger.kernel.org; kvm@vger.kernel.org Subject: Re: [PATCH] qemu-kvm: fix ia64 build breakage No, I mean sles11-ia64 includes it already as

RE: [PATCH] qemu-kvm: fix ia64 build breakage

2009-12-09 Thread Zhang, Xiantao
So you mean Sles11-ia64 will include it ? Xiantao -Original Message- From: kvm-ia64-ow...@vger.kernel.org [mailto:kvm-ia64-ow...@vger.kernel.org] On Behalf Of Alexander Graf Sent: Wednesday, December 09, 2009 2:59 PM To: Zhang, Xiantao Cc: a...@redhat.com; kvm-i...@vger.kernel.org; kvm

RE: [PATCH] qemu-kvm: fix ia64 build breakage

2009-12-08 Thread Zhang, Xiantao
I don't think how much effort needs to make it work again. So maybe need to evaluate it first, and give you the answer later. By the way, are you using it now ? Xiantao Alexander Graf wrote: > Hi Xiantao, > > On 12.08.2009, at 06:03, Zhang, Xiantao wro

[PATCH] qemu-kvm: fix ia64 build breakage

2009-08-11 Thread Zhang, Xiantao
+ * Copyright (C) 2006 Qumranet + * + * Authors: + * + * Avi Kivity + * Yaniv Kamay + * + * Copyright (C) 2007 Intel + * Added by : Zhang Xiantao + * + * This work is licensed under the GNU LGPL license, version 2. + * + */ + +#include "libkvm.h" +#include +#include #include +#i

[PATCH 02/03] qemu-kvm: add tcg-traget stub for ia64.

2009-08-11 Thread Zhang, Xiantao
>From 94b7ff3a596b43d82e26494484807f3de7eddd40 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang Date: Wed, 5 Aug 2009 11:27:10 +0800 Subject: [PATCH] qemu-kvm: add tcg-traget stub for ia64. Signed-off-by: Xiantao Zhang --- tcg/ia64/tcg-target.c | 222 ++

[PATCH] qemu-kvm: ia64 build fix.

2009-08-11 Thread Zhang, Xiantao
>From 7ae1cc3ac39e920ecd553902a5f578af8cdb383c Mon Sep 17 00:00:00 2001 From: Xiantao Zhang Date: Wed, 12 Aug 2009 10:48:18 +0800 Subject: [PATCH] qemu-kvm: ia64 build fix. fixed missing part for ipf due to common changes. Signed-off-by: Xiantao Zhang --- configure |7

RE: ia64: why is mmio bus access lockless?

2009-06-25 Thread Zhang, Xiantao
Hi, Michael Since only virtual ioapic uses the lock-less logic, so it shouldn't introduce the issues. Anyway, it should be safer to add the lock considering its semantic and future usage models. Would you like to prepare a patch to enhance it ? Thanks! Xiantao Michael S. Tsirkin wrote: > H

RE: [PATCH 0/4] decouple vcpu index from apic id

2009-06-08 Thread Zhang, Xiantao
Avi Kivity wrote: > Gleb Natapov wrote: >> Currently vcpu_id is used as an index into vcpus array and as apic id >> on x86. This is incorrect since apic ids not have to be continuous >> (they can also encode cpu hierarchy information) and may have values >> bigger then vcpu array in case of x2apic

RE: [PATCH 1/4] Introduce kvm_vcpu_is_bsp() function.

2009-06-08 Thread Zhang, Xiantao
Avi Kivity wrote: > Gleb Natapov wrote: >> @@ -130,6 +130,7 @@ struct kvm { >> int nmemslots; >> struct kvm_memory_slot memslots[KVM_MEMORY_SLOTS + >> KVM_PRIVATE_MEM_SLOTS]; +struct kvm_vcpu *bsp_vcpu; >> struct kvm_vcpu *vcpus[KVM_MAX_VCPUS]; >> struct list_head vm_list;

RE: [PATCH] qemu-kvm: Flush icache after dma operations for ia64

2009-06-04 Thread Zhang, Xiantao
Jes Sorensen wrote: > Zhang, Xiantao wrote: >> Hi, Jes >> Have you verified whether it works for you ? You may run kernel >> build in the guest with 4 vcpus, if it can be done successfully >> without any error, it should be Okay I think, otherwise, we may need &

RE: [PATCH] qemu-kvm: Flush icache after dma operations for ia64

2009-06-02 Thread Zhang, Xiantao
: Jes Sorensen [mailto:j...@sgi.com] Sent: Tuesday, June 02, 2009 6:57 PM To: Avi Kivity Cc: Zhang, Xiantao; kvm@vger.kernel.org; kvm-i...@vger.kernel.org; Hollis Blanchard Subject: Re: [PATCH] qemu-kvm: Flush icache after dma operations for ia64 Avi Kivity wrote: > Zhang, Xiantao wrote: >

RE: [PATCH] qemu-kvm: Flush icache after dma operations for ia64

2009-05-31 Thread Zhang, Xiantao
Avi Kivity wrote: > Jes Sorensen wrote: >> Ok, >> >> Trying once more. After spending a couple of hours trying to follow >> the QEMU dma codeflow, I have convinced myself Avi is right and those >> two functions don't need to do the flushing as they all end up >> calling dma_bdrv_cb() which calls d

[PATCH] qemu-kvm: Flush icache after dma operations for ia64

2009-05-11 Thread Zhang, Xiantao
Avi This is the new patch for icache flush after DMA emualtion for ia64, and it should address Hollis's comments. Xiantao >From 60a27e2ea9758c97e974aa5bb1925ad4ed045c5f Mon Sep 17 00:00:00 2001 From: Xiantao Zhang Date: Mon, 11 May 2009 18:04:15 +0800 Subject: [PATCH] qemu-kvm: Flush icac

RE: [PATCH 04/04] qemu-kvm: other archs should maintain memory mapping also.

2009-05-11 Thread Zhang, Xiantao
Any conclusion on this thread ? Xiantao Zhang, Xiantao wrote: > From d184d9b0a91ca674961000ed3d35b7fc25d29e03 Mon Sep 17 00:00:00 2001 > From: Xiantao Zhang > Date: Tue, 28 Apr 2009 16:59:36 +0800 > Subject: [PATCH] qemu-kvm: other archs should maintain memory mapping > also.

RE: [patch] fix qemu-kvm to build when gdbstub is disabled

2009-05-07 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >> Jes Sorensen wrote: >> >>> Hi, >>> >>> The latest changes to qemu-kvm breaks miserably if one tries to >>> build without CONFIG_GDBSTUB. >>> >>> Jes >>&g

RE: [patch] fix qemu-kvm to build when gdbstub is disabled

2009-05-06 Thread Zhang, Xiantao
Jes Sorensen wrote: > Hi, > > The latest changes to qemu-kvm breaks miserably if one tries to build > without CONFIG_GDBSTUB. > > Jes --- qemu-kvm.orig/vl.c +++ qemu-kvm/vl.c @@ -4417,13 +4417,11 @@ } if (cpu_can_run(env)) ret = qemu_cpu_exec(env); -#ifndef CONFIG_

RE: [patch] fix irq routing by moving it to the correct place

2009-05-06 Thread Zhang, Xiantao
Aha, good catch! I think it should fix irq routting for pci irq of ia64 ? Xiantao -Original Message- From: Jes Sorensen [mailto:j...@sgi.com] Sent: Wednesday, May 06, 2009 10:12 PM To: Avi Kivity Cc: Zhang, Xiantao; kvm-i...@vger.kernel.org; kvm@vger.kernel.org Subject: [patch] fix irq

RE: [PATCH 03/04] qemu-kvm: Remove the dependency for phys_ram_base for ipf.c

2009-05-03 Thread Zhang, Xiantao
Jes Sorensen wrote: > Zhang, Xiantao wrote: >> Avi Kivity wrote: >> Looks good to me. Xiantao? >> >> Hi, Jes >> Have you tested nvram support with this patch? I >> Xiantao > > No, > > But it is behaving exactly like the old code, so it i

RE: [PATCH 03/04] qemu-kvm: Remove the dependency for phys_ram_base for ipf.c

2009-05-03 Thread Zhang, Xiantao
Avi Kivity wrote: > Jes Sorensen wrote: >> Zhang, Xiantao wrote: >>> Jes Sorensen wrote: >>> I still can't see the difference with the patch in Avi's tree except >>> nvram stuff. And I believe the global variable you mentioned should >>> be

RE: [PATCH] Revert "Sync idcache after emualted DMA operations for ia64"

2009-05-03 Thread Zhang, Xiantao
Avi Kivity wrote: > Hollis Blanchard wrote: >> This reverts commit 9dc99a28236161a5a1b4c58f1e9c4ec6179cb976. >> Aside from the other issues discussed on kvm-devel, this commit >> breaks the PowerPC build. >> >> > > Applied, thanks. Hollis, Could you explain why this patch breaks the powerp

RE: [PATCH] kvm-kmod: fix build on kernels with kvm trace set

2009-05-03 Thread Zhang, Xiantao
Avi Kivity wrote: > Michael S. Tsirkin wrote: >> CONFIG_KVM_TRACE in kernel conflicts with the definition >> in external module. external-module-compat-comm.h tried >> to work around this, but this didn't work as some >> code still does #include >> directly. >> >> Solve this differently by s/CONF

RE: [PATCH 03/04] qemu-kvm: Remove the dependency for phys_ram_base for ipf.c

2009-04-29 Thread Zhang, Xiantao
Jes Sorensen wrote: > Zhang, Xiantao wrote: >> Jes Sorensen wrote: >>> What do you think of this one? >> >> Hi, Jes >> Except nvram stuff, I don't see the difference with my patch. >> Could you provide an incremental patch to fix nvram stuff

RE: [PATCH 02/04] qemu-kvm: Add header files for ia64.

2009-04-29 Thread Zhang, Xiantao
Jes Sorensen wrote: > Zhang, Xiantao wrote: >> Hi, Jes >> There should be no issue here. You may refer to >> qemu-kvm/kvm/kernel/arch/x86/include/asm/kvm.h, and it also includes >> this stuff. I remebered this stuff was used to solve the issues >> when uses

RE: [PATCH 02/04] qemu-kvm: Add header files for ia64.

2009-04-29 Thread Zhang, Xiantao
Sent: Wednesday, April 29, 2009 5:31 PM To: Zhang, Xiantao Cc: Avi Kivity; kvm-i...@vger.kernel.org; kvm@vger.kernel.org Subject: Re: [PATCH 02/04] qemu-kvm: Add header files for ia64. >>>>> "Xiantao" == Zhang, Xiantao writes: Xiantao> From bbaeed10e1629a1c86a497e

RE: [PATCH 03/04] qemu-kvm: Remove the dependency for phys_ram_base for ipf.c

2009-04-29 Thread Zhang, Xiantao
Jes Sorensen wrote: > Zhang, Xiantao wrote: >> Avi Kivity wrote: >>> I haven't pushed this out yet, so I can apply a replacement patch. >> >> We don't need flush_icache_range here, because I believe it is >> called in cpu_physical_memory_write. Xian

RE: [PATCH 03/04] qemu-kvm: Remove the dependency for phys_ram_base for ipf.c

2009-04-28 Thread Zhang, Xiantao
Jes Sorensen wrote: >>>>>> "Avi" == Avi Kivity writes: > > Avi> Zhang, Xiantao wrote: >>>> qemu_get_ram_ptr() returns a pointer. Don't cast it to a >>>> ram_addr_t, leave it a pointer. >>>> >>>> But why

RE: [PATCH 03/04] qemu-kvm: Remove the dependency for phys_ram_base for ipf.c

2009-04-28 Thread Zhang, Xiantao
Avi Kivity wrote: > Jes Sorensen wrote: >>>>>>> "Avi" == Avi Kivity writes: >>>>>>> >> >> Avi> Zhang, Xiantao wrote: >> >>>>> qemu_get_ram_ptr() returns a pointer. Don't cast it to a &g

RE: [PATCH 03/04] qemu-kvm: Remove the dependency for phys_ram_base for ipf.c

2009-04-28 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >> From aaf97331da3d6cd34522441218c8c9ab3c1067f6 Mon Sep 17 00:00:00 >> 2001 >> From: Xiantao Zhang >> Date: Tue, 28 Apr 2009 16:55:47 +0800 >> Subject: [PATCH] qemu-kvm: Remove the dependency for phys_ram_base >>

RE: [PATCH 00/04] Enable qemu-kvm for ia64.

2009-04-28 Thread Zhang, Xiantao
Attached. -Original Message- From: Avi Kivity [mailto:a...@redhat.com] Sent: Tuesday, April 28, 2009 5:40 PM To: Zhang, Xiantao Cc: kvm-i...@vger.kernel.org; kvm@vger.kernel.org Subject: Re: [PATCH 00/04] Enable qemu-kvm for ia64. Zhang, Xiantao wrote: > Patches for enabing qemu-

[PATCH 01/04] qemu-kvm: Set default configure option for ia64

2009-04-28 Thread Zhang, Xiantao
>From 98c3d2efeddae9e050455ae06f5214ba2bdc4ec3 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang Date: Tue, 28 Apr 2009 15:03:05 +0800 Subject: [PATCH] qemu-kvm: Set default configure option for ia64 1.Disable xen config support for ia64. 2.Only configure ia64-softmmu for ia64. Signed-off-by: Xiant

[PATCH 03/04] qemu-kvm: Remove the dependency for phys_ram_base for ipf.c

2009-04-28 Thread Zhang, Xiantao
>From aaf97331da3d6cd34522441218c8c9ab3c1067f6 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang Date: Tue, 28 Apr 2009 16:55:47 +0800 Subject: [PATCH] qemu-kvm: Remove the dependency for phys_ram_base for ipf.c Upstream has dropped phys_ram_base, so ia64 also remove the dependency for that. Signed

[PATCH 00/04] Enable qemu-kvm for ia64.

2009-04-28 Thread Zhang, Xiantao
Patches for enabing qemu-kvm for ia64. [PATCH 01/04] qemu-kvm: Set default configure option for ia64. [PATCH 02/04] qemu-kvm: Add header files for ia64. [PATCH 03/04] qemu-kvm: Remove the dependency for phys_ram_base for ipf.c [PATCH 04/04] qemu-kvm: other archs should maintain memory mapping al

[PATCH 04/04] qemu-kvm: other archs should maintain memory mapping also.

2009-04-28 Thread Zhang, Xiantao
>From d184d9b0a91ca674961000ed3d35b7fc25d29e03 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang Date: Tue, 28 Apr 2009 16:59:36 +0800 Subject: [PATCH] qemu-kvm: other archs should maintain memory mapping also. Currently, use TARGET_I386 to comment out the mapping machanism for other archs, but mappi

RE: [PATCH] kvm: qemu: Sync idcache after emualted DMA operations for ia64

2009-04-24 Thread Zhang, Xiantao
Hollis Blanchard wrote: > On Fri, 2009-04-24 at 15:45 +0800, Zhang, Xiantao wrote: >> >>> As I said before, "synchronize instruction and data caches" is a >>> meaningful and important operation on architectures other than IA64. >>> *However*, that op

RE: [PATCH] kvm: qemu: Sync idcache after emualted DMA operations for ia64

2009-04-24 Thread Zhang, Xiantao
Hollis Blanchard wrote: > On Wed, 2009-04-22 at 09:59 +0800, Zhang, Xiantao wrote: >> Hollis Blanchard wrote: >>> On Tue, 2009-04-21 at 20:21 +0300, Avi Kivity wrote: >>>> Hollis Blanchard wrote: >>>>> On Tue, 2009-04-21 at 10:08 +, Avi Ki

RE: problem with kvm-85 release

2009-04-21 Thread Zhang, Xiantao
Avi should have a fix in upstream, but don't know why it is missing in kvm-85. For solving the issue, you need to create a soft link in the directory "include" and "include-compat" under kernel before configure. "ln -sf asm-x86 asm". Xiantao -Original Message- From: kvm-ow...@vger.kern

RE: [PATCH] kvm: qemu: Sync idcache after emualted DMA operations for ia64

2009-04-21 Thread Zhang, Xiantao
Hollis Blanchard wrote: > On Tue, 2009-04-21 at 20:21 +0300, Avi Kivity wrote: >> Hollis Blanchard wrote: >>> On Tue, 2009-04-21 at 10:08 +, Avi Kivity wrote: >>> From: Xiantao Zhang ia64 depends on platform provides synced idcache after DMA operation. For virtual dma ope

[PATCH] KVM: ia64: Flush all TLBs once guest's memory mapping changes.

2009-04-16 Thread Zhang, Xiantao
>From dcb73b5db2e91213a2536542945645caaf23bfe3 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang Date: Thu, 16 Apr 2009 17:59:16 +0800 Subject: [PATCH] KVM: ia64: Flush all TLBs once guest's memory mapping changes. Flush all vcpu's TLB entries once changes guest's memory mapping. Signed-off-by: Xiant

RE: Luvalley-2 has been released: running KVM below any operating system

2009-04-16 Thread Zhang, Xiantao
How about performance comparision with kvm guests? Xiantao -Original Message- From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On Behalf Of Xiaodong Yi Sent: Thursday, April 16, 2009 9:54 AM To: kvm@vger.kernel.org Subject: Luvalley-2 has been released: running KVM be

RE: [patch 1/2] IA64: export smp_send_reschedule

2009-04-13 Thread Zhang, Xiantao
Hi, Tony Could you help to ack the patch ? Xiantao Acked-by: Xiantao Zhang Marcelo Tosatti wrote: > To be used by KVM. > > CC: > CC: Gleb Natapov > Signed-off-by: Marcelo Tosatti > > Index: kvm/arch/ia64/kernel/smp.c > =

[PATCH] KVM: Qemu: Fix ia64 boot failure and build issue.

2009-04-12 Thread Zhang, Xiantao
commit 30a96c404b41d4091781c33cfdf5384a7b6b655e Author: Xiantao Zhang Date: Tue Apr 7 09:58:25 2009 -0400 KVM: Qemu: Fix ia64 boot failure and build issue. 1. Remove vga_bios_init for arch ia64, and doesn't need it now. 2. Fix build issue due to lacking of header file. Sig

RE: [PATCH] KVM: Qemu: Flush i-cache after ide-dma operation in IA64

2009-04-02 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Yang wrote: >> The data from dma will include instructions. In order to exeuting >> the right >> instruction, we should to flush the i-cache to ensure those data can >> be see >> by cpu. >> >> >> >> diff --git a/qemu/cache-utils.h b/qemu/cache-utils.h >> index b45fde

RE: [PATCH] KVM: Qemu: Flush i-cache after ide-dma operation in IA64

2009-04-02 Thread Zhang, Xiantao
Avi Kivity wrote: > Avi Kivity wrote: >>> >>> It doesn't had to do it. The PCI transaction will automatically >>> invalidate caches - but qemu doesn't emulate this (and doesn't need >>> to do on x86). >>> >> >> So any DMA on ia64 will flush the instruction caches?! >> > > Or maybe, the

RE: [PATCH] KVM: Qemu: Flush i-cache after ide-dma operation in IA64

2009-04-02 Thread Zhang, Xiantao
Avi Kivity wrote: > tging...@free.fr wrote: >> >>> What about smp? >>> >> >> fc will broadcast to the coherence domain the cache invalidation. >> So it is SMP-ready for usual machines. >> >> > > Interesting. > >>> I'm surprised the guest doesn't do this by itself? >>> >> >> It doesn't ha

RE: [PATCH] KVM: Qemu: Do not use log dirty in IA64

2009-04-01 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Yang wrote: >> hi >> please checkin it to kvm85, thanks! >> >> IA64 does not support log dirty. We should not use it >> in IA64, or it will have some problem. >> > > Applied, thanks. When are you planning to add support for log dirty > on ia64? We had the patch

RE: [PATCH] fix ia64 compilation

2009-03-23 Thread Zhang, Xiantao
Hi, Avi Please help to pick this patch which fixing ia64 build and queue it for kvm-85. Thanks! Acked-by: Xiantao Zhang Xiantao Gleb Natapov wrote: > Signed-off-by: Gleb Natapov > diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c > index c25347f..906d597 10064

RE: x86: use smp_send_reschedule in kvm_vcpu_kick

2009-03-19 Thread Zhang, Xiantao
Gleb Natapov wrote: > On Fri, Mar 13, 2009 at 10:15:22AM +0800, Zhang, Xiantao wrote: >> We also hacked the source like the patch. But the issue is not >> caused by it. We are still trying to figure the reason out. Thanks! >> Xiantao >> > > With the pat

RE: x86: use smp_send_reschedule in kvm_vcpu_kick

2009-03-12 Thread Zhang, Xiantao
We also hacked the source like the patch. But the issue is not caused by it. We are still trying to figure the reason out. Thanks! Xiantao -Original Message- From: Gleb Natapov [mailto:g...@redhat.com] Sent: Thursday, March 12, 2009 7:04 PM To: Zhang, Xiantao Cc: Avi Kivity; Marcelo

RE: x86: use smp_send_reschedule in kvm_vcpu_kick

2009-03-11 Thread Zhang, Xiantao
Avi Kivity wrote: > Marcelo Tosatti wrote: >> OK, reworked patch: >> - change ia64 in addition to x86 >> - add comment on smp send reschedule handlers about KVM's usage >> >> Untested on IA64. >> >> KVM: use smp_send_reschedule in kvm_vcpu_kick >> >> KVM uses a function call IPI to cause the exi

RE: compile problems userspace-tools from git on ubuntu intrepid 8.10 x64

2009-03-04 Thread Zhang, Xiantao
Did you do "make sync LINUX=/usr/local/src/linux-kvm-git" in kvm-userspace.git before your "./configure" ? Xiantao freisei wrote: > Hi @ll, > > I want to update my kvm-84 to the latest git releaste due to an > IOMMU-feature. > > git clone git://git.kernel.org/pub/scm/virt/kvm/kvm-userspace.git

RE: x86: use smp_send_reschedule in kvm_vcpu_kick

2009-03-02 Thread Zhang, Xiantao
Marcelo Tosatti wrote: > @@ -72,7 +73,6 @@ struct kvm_vcpu { > struct mutex mutex; > int cpu; > struct kvm_run *run; > - int guest_mode; > unsigned long requests; > unsigned long guest_debug; > int fpu_active; The deletion will break other archs which depe

RE: [PATCH] kvm : qemu : fix compilation error in kvm-userspace for ia64

2009-03-02 Thread Zhang, Xiantao
> diff --git a/kernel/Makefile b/kernel/Makefile > index f8b341f..808f15e 100644 > --- a/kernel/Makefile > +++ b/kernel/Makefile > @@ -61,7 +61,8 @@ headers-old = > $(LINUX)/./include/asm-$(ARCH_DIR)/kvm*.h headers-new = > $(LINUX)/arch/$(ARCH_DIR)/include/asm/./kvm*.h \ > $(LINUX)/ar

RE: KVM build breakage

2009-02-25 Thread Zhang, Xiantao
PPC doesn't compile this source file, I think :) Xiantao -Original Message- From: Jes Sorensen [mailto:j...@sgi.com] Sent: Wednesday, February 25, 2009 6:06 PM To: Zhang, Xiantao Cc: Sheng Yang; Avi Kivity; kvm-i...@vger.kernel.org; kvm@vger.kernel.org Subject: Re: KVM build bre

RE: kvm-84 screen corruption

2009-02-24 Thread Zhang, Xiantao
I can confirm it on ia64 platform with kvm-84 and kvm-userspace upstream source. Another issue is that the text color is not correct. Xiantao Aurelien Jarno wrote: > Dustin Kirkland a écrit : >> Howdy- >> >> I recently merged kvm-84 into Ubuntu Jaunty. >> >> We're experiencing corruption of t

RE: KVM build breakage

2009-02-24 Thread Zhang, Xiantao
; kvm@vger.kernel.org; Zhang, Xiantao Subject: KVM build breakage Hi, A snapshot of Avi's tree as of today breaks on ia64. Looks like it is the recent MSI support that caused this. Sheng Yang, please make sure to test on non x86 when you implement things like these that clearly will only build on x86.

RE: kvm-userspace build break (linux/types.h)

2009-02-19 Thread Zhang, Xiantao
For x86 and ia64, linux/types.h will be hacked to asm/types.h when syncing the source. You may consult kernel/x86/hack-module.awk to get the answer. Xiantao Joerg Roedel wrote: > On Thu, Feb 19, 2009 at 03:50:14PM -0600, Hollis Blanchard wrote: >> A recent kernel merge breaks kvm-userspace bu

RE: [PATCH 01/02] ia64: Move the macro definitions related to MSI to one header file.

2009-02-18 Thread Zhang, Xiantao
Sent: Thursday, February 19, 2009 7:03 AM To: Zhang, Xiantao Cc: Luck, Tony; linux-i...@vger.kernel.org; Avi Kivity; kvm@vger.kernel.org; kvm-i...@vger.kernel.org Subject: Re: [PATCH 01/02] ia64: Move the macro definitions related to MSI to one header file. Looks good, should go through Tony's tre

RE: [PATCH 01/02] ia64: Move the macro definitions related to MSI to one header file.

2009-02-17 Thread Zhang, Xiantao
Thanks, Tony! It should not break anything due to no changes about code logic. :) Avi, Could you help to commit the patches with Tony's Ack ? Thanks! Xiantao Luck, Tony wrote: >> For supporting kvm's MSI, we have to move some macros >> from ia64_msi.c out to avoide duplicate them. In a

RE: [PATCH]remove some redundant args for ipf

2009-02-16 Thread Zhang, Xiantao
Avi, Please help to check-in this patch, and it breaks ia64's build. Xiantao -Original Message- From: Zhang, Yang Sent: Monday, February 16, 2009 4:31 PM To: kvm-i...@vger.kernel.org Cc: kvm@vger.kernel.org; Avi Kivity; Zhang, Xiantao Subject: [PATCH]remove some redu

[PATCH 01/02] ia64: Move the macro definitions related to MSI to one header file.

2009-02-15 Thread Zhang, Xiantao
Hi, Tony For supporting kvm's MSI, we have to move some macros from ia64_msi.c out to avoide duplicate them. In addition, to keep them consistent with x86's , I also changed some macros' name. How do you think of the patch ? If you agree to the changes, could you add your Sign-off-by to the

[PATCH 02/02] kvm: ia64: Fix the build errors due to lack of macros related to MSI.

2009-02-15 Thread Zhang, Xiantao
>From fb2e7473e44b6b0bcc8448d4f74a4f8d43e7fa4c Mon Sep 17 00:00:00 2001 From: Xiantao Zhang Date: Mon, 16 Feb 2009 15:24:05 +0800 Subject: [PATCH] kvm: ia64: Fix the build errors due to lack of macros related to MSI. Include the newly introduced msidef.h to solve the build issues. Signed-off-by

RE: [PATCH] Always return latest pmsts instead of the old one.

2009-01-20 Thread Zhang, Xiantao
Any comments ? If no, please help to check-in this patch. It blocks our work for a long time. Thanks! Xiantao -Original Message- From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On Behalf Of Zhang, Xiantao Sent: Monday, January 19, 2009 10:13 PM To: Anthony Liguori

[PATCH 03/03] KVM: ia64: Implement some pal calls needed for windows 2008.

2009-01-20 Thread Zhang, Xiantao
>From 4a3755fda38a944a5bce40d14b54bd9032ba92a4 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang Date: Wed, 21 Jan 2009 11:21:27 +0800 Subject: [PATCH] KVM: ia64: Implement some pal calls needed for windows 2008. For windows 2008, it needs more pal calls to implement for booting. In addition, also cha

[PATCH 02/03] KVM: ia64: Add the support for translating PAL Call's pointer args.

2009-01-20 Thread Zhang, Xiantao
>From 635b75a4df55771f65ce7c40268a18d528114769 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang Date: Thu, 15 Jan 2009 18:08:36 +0800 Subject: [PATCH] KVM: ia64: Add the support for translating PAL Call's pointer args. Add the support to translate PAL Call's pointer args. Signed-off-by: Xiantao Zha

[PATCH 01/03]KVM: ia64: vTLB change for enabling windows 2008 boot.

2009-01-20 Thread Zhang, Xiantao
>From 988aedcf2ad07273dd3a88b5c574ee13d845b020 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang Date: Thu, 15 Jan 2009 17:58:19 +0800 Subject: [PATCH] KVM: ia64: vTLB change for enabling windows 2008 boot. Simply the logic of hash vTLB, and export kvm_gpa_to_mpa. Signed-off-by: Xiantao Zhang --- a

[PATCH 00/03] Patches to enable windows2008 on kvm/ia64.

2009-01-20 Thread Zhang, Xiantao
With the following three patches, we can boot up windows 2008 guests with good stability and performance on kvm/ia64, and they can be applied for kvm.git kvm-ia64.git and linus's git repo. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@v

RE: [PATCH] Always return latest pmsts instead of the old one.

2009-01-19 Thread Zhang, Xiantao
>pmsts |= TMROF_EN; -return pmsts; +return s->pmsts; } static void pm_update_sci(PIIX4PMState *s) Anthony Liguori wrote: > Zhang, Xiantao wrote: >> For get_pmsts of acpi, it should always return latest value instead >> of the old one. Xiantao >> >> &

RE: [PATCH] KVM : Qemu: update call pci_nic_init

2009-01-15 Thread Zhang, Xiantao
Mark McLoughlin wrote: > Hi, > > On Thu, 2009-01-15 at 15:36 +0800, Zhang, Yang wrote: >> Hi >> As the definition pci_nic_init has modified, this patch update the >> corresponding calling in ipf_init1(). > > Yep, qemu/hw/ipf.c isn't upstream so it didn't get updated when the > function was change

RE: [PATCH] KVM: IA64: fix fp fault/trap handler

2009-01-14 Thread Zhang, Xiantao
Avi, Please help to commit this patch if no other comments, and queue it for 2.6.29 fixes. Thanks! Xiantao -Original Message- From: Zhang, Yang Sent: Wednesday, January 14, 2009 5:09 PM To: kvm-i...@vger.kernel.org Cc: kvm@vger.kernel.org; Avi Kivity; Zhang, Xiantao Subject

RE: [PATCH] Always return latest pmsts instead of the old one.

2009-01-14 Thread Zhang, Xiantao
Any comments ? Zhang, Xiantao wrote: > For get_pmsts of acpi, it should always return latest value instead > of the old one. Xiantao > > > From: Xiantao Zhang > Date: Tue, 13 Jan 2009 17:42:16 +0800 > Subject: [PATCH] Always return latest pmsts instead of the old one

[PATCH] Always return latest pmsts instead of the old one.

2009-01-13 Thread Zhang, Xiantao
For get_pmsts of acpi, it should always return latest value instead of the old one. Xiantao From: Xiantao Zhang Date: Tue, 13 Jan 2009 17:42:16 +0800 Subject: [PATCH] Always return latest pmsts instead of the old one. It may lead to the issue when booting windows guests with acpi=1 if return

RE: [PATCH] kvm: userspace: change vtd.o to iommu.o in Kbuild

2009-01-08 Thread Zhang, Xiantao
Amit Shah wrote: > On Thu, Jan 08, 2009 at 03:27:12PM +0800, Huang, Wei W wrote: >> vtd.c has been renamed to iommu.c, need to change it in Kbuild >> accordingly. >> >> Signed-off-by: Wei Huang >> --- >> kernel/x86/Kbuild |2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> dif

RE: [patch] ia64 - expose registers in struct kvm_regs

2009-01-08 Thread Zhang, Xiantao
Avi can pickup it into kvm.git, and seems it is unnecessary to push into 2.6.29, right ? Xiantao Jes Sorensen wrote: > Hi, > > I think this one got lost in the battle. Would you mind sticking it in > or do you want me to send it to Tony? > > Cheers, > Jes -- To unsubscribe from this list: sen

RE: [PATCH] Kvm: Qemu: save nvram

2008-12-17 Thread Zhang, Xiantao
Charles Duffy wrote: > Zhang, Yang wrote: >> Hi >> Please drop former. >> This is the modify patch for save nvram. >> I add the new command line arg of "-nvram file" to specify the >> location Of the file. Without the arg ,it will save the nvram in the >> current dir and named as "nvram.dat". Also,

[PATCH] KVM: Qemu : Fix build breakage for ia64.

2008-12-17 Thread Zhang, Xiantao
>From 8b98bbdd71c979b4d63591f1542d3a3afabbff22 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang Date: Thu, 18 Dec 2008 10:06:31 +0800 Subject: [PATCH] KVM: Qemu : Fix build breakage for ia64. Signed-off-by: Xiantao Zhang --- qemu/qemu-kvm.c |2 ++ qemu/target-ia64/helper.c |5 +++

RE: [PATCH 3/3] KVM: pci passthrough un-page-aligned mmio device on machines w/o VT-d

2008-12-15 Thread Zhang, Xiantao
Xiaojian, For generating the patches for kvm module, you needs to use kvm.git as development tree instead of kvm's release tarball. The source files in release tarball have been hacked before release out, and maybe different with kernel's. So please clone kvm.git through git.kernel.org first

RE: powerpc kvm-userspace build fixes

2008-12-03 Thread Zhang, Xiantao
Hollis Blanchard wrote: > On Wed, 2008-12-03 at 13:05 +0200, Avi Kivity wrote: >> Hollis Blanchard wrote: >>> I'm also seeing a build dependency issue with dyngen-opc.h that I >>> don't see >>> upstream. I haven't sorted that out yet, but "make >>> qemu/ppcemb-softmmu/dyngen-opc.h" first works aro

RE: [PATCH] Kvm: Qemu: save nvram

2008-12-02 Thread Zhang, Xiantao
Daniel P. Berrange wrote: > On Tue, Dec 02, 2008 at 03:01:20PM +0200, Avi Kivity wrote: >> Daniel P. Berrange wrote: >>> On Tue, Dec 02, 2008 at 10:25:49AM +0800, Zhang, Yang wrote: >>> This patch to save the nvram. It save the nvram by specify the arg of -name.And the saved file named b

RE: [PATCH] KVM: Qemu: push_nmi should be only used by I386 Arch.

2008-12-01 Thread Zhang, Xiantao
Oops, seems we introduced the issue together. Acked-by Xiantao Zhang <[EMAIL PROTECTED]> -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2008 7:03 AM To: Hollis Blanchard Cc: Avi Kivity; Zhang, Xiantao; kvm@vger.kernel.org;

RE: [PATCH] KVM: Qemu: push_nmi should be only used by I386 Arch.

2008-11-27 Thread Zhang, Xiantao
Jan Kiszka wrote: > Zhang, Xiantao wrote: >> From 1b89616f99abc8e0983ef58a1f984f31a52fe828 Mon Sep 17 00:00:00 >> 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> >> Date: Thu, 27 Nov 2008 17:24:51 +0800 >> Subject: [PATCH] KVM: Qemu: push_nmi should be only

RE: [PATCH] KVM: Qemu: Build fix for !CONFIG_GDBSTUB case.

2008-11-27 Thread Zhang, Xiantao
Jan Kiszka wrote: > Zhang, Xiantao wrote: >> From ee96ecb2c86e820278f3332d32a452f31c72dc30 Mon Sep 17 00:00:00 >> 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> >> Date: Thu, 27 Nov 2008 17:23:27 +0800 >> Subject: [PATCH] KVM: Qemu: Build fix for !CONFIG_GDBSTUB cas

RE: [PATCH][3/3] kvm/ia64: external module: Add printk support for kvm-intel.

2008-11-27 Thread Zhang, Xiantao
Please drop the previous one. Xiantao >From c86bee60542097fd2064cb4ae4e0d6a555b1e688 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Thu, 27 Nov 2008 17:39:13 +0800 Subject: [PATCH] KVM: external module: Fix for printk support. kvm-intel module added printk support in kern

[PATCH] KVM: external module: Fix for printk support.

2008-11-27 Thread Zhang, Xiantao
>From b1fc7f3303d9e141e27bff593fb05ada59910b09 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Thu, 27 Nov 2008 17:27:05 +0800 Subject: [PATCH] KVM: external module: Fix for printk support. kvm-intel module added printk support in kernel, this patch fix build failure with it

[PATCH] KVM: Qemu: push_nmi should be only used by I386 Arch.

2008-11-27 Thread Zhang, Xiantao
>From 1b89616f99abc8e0983ef58a1f984f31a52fe828 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Thu, 27 Nov 2008 17:24:51 +0800 Subject: [PATCH] KVM: Qemu: push_nmi should be only used by I386 Arch. Use TARGET_I386 to exclude other archs. Signed-off-by: Xiantao Zhang <[EMAIL

[PATCH] KVM: Qemu: Build fix for !CONFIG_GDBSTUB case.

2008-11-27 Thread Zhang, Xiantao
>From ee96ecb2c86e820278f3332d32a452f31c72dc30 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Thu, 27 Nov 2008 17:23:27 +0800 Subject: [PATCH] KVM: Qemu: Build fix for !CONFIG_GDBSTUB case. Once CONFIG_GDBSTUB not configured, compile will generate error. Signed-off-by: Xia

[PATCH 03/05] KVM: IA64: Add handler for crashed vmm.

2008-11-21 Thread Zhang, Xiantao
>From 2d01c04c416fb28670052c60b8bde787fa71788f Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Fri, 21 Nov 2008 17:16:07 +0800 Subject: [PATCH] KVM: IA64: Add handler for crashed vmm. Since vmm runs in an isolated address space and it is just a copy of host's kvm-intel modul

[PATCH] KVM: IA64: Define printk function for kvm-intel module.

2008-11-21 Thread Zhang, Xiantao
>From afd9e1e39b03bf4573d9416117bce128983076f5 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Fri, 21 Nov 2008 20:58:11 +0800 Subject: [PATCH] KVM: IA64: Define printk function for kvm-intel module. kvm-intel module is relocated to an isolated address space with kernel, so

  1   2   3   >