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

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-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 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 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: 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 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

[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

[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: 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

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: 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

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-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-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-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 >>>

[PATCH] Fix KVM/IA-64 build issue in latest kvm.git.

2008-08-19 Thread Zhang, Xiantao
>From d53dfacedea40213382694229700d02bfa72d923 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Tue, 19 Aug 2008 17:33:21 +0800 Subject: [PATCH] KVM: KVM/IA-64: Fix kvm/ia64's build issue. Disable irq ack notification for ia64. Signed-off-by: Xiantao Zhang <[EMAIL PROTECTED]>

RE: [PATCH] Fix KVM/IA-64 build issue in latest kvm.git.

2008-08-19 Thread Zhang, Xiantao
OK, also fine to me! Attached the updated patch. Thanks Xiantao Avi Kivity wrote: > Zhang, Xiantao wrote: >> From d53dfacedea40213382694229700d02bfa72d923 Mon Sep 17 00:00:00 >> 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> >> Date: Tue, 19 Aug 2008 17:33:21 +0800 >

[PATCH] Make " make sync" get correct header files with latest Linux source.

2008-08-20 Thread Zhang, Xiantao
>From 217ca6cfa90524d011fb219efcc0ac4e8a5b5e20 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Wed, 20 Aug 2008 18:46:14 +0800 Subject: [PATCH] KVM: Userspace: Make " make sync" get correct header files with latest Linux source. In latest linux repo, ia64, s390 and other arc

RE: [ANNOUNCE] kvm-73 release

2008-08-20 Thread Zhang, Xiantao
Hi, Avi Since ia64 has supported userspace's build, could we include ia64 bits in next release? Thanks Xiantao Avi Kivity wrote: > The big change is of course full swapping support, finally delivering > the full range of Linux memory management operations to kvm. You will > need a 2.6.27 ho

RE: [PATCH] Make " make sync" get correct header files with latest Linux source.

2008-08-21 Thread Zhang, Xiantao
Avi, Please drop the previous one due to its incompleteness, and help to check-in this one. Xiantao >From ae0e1b37520f6aba051b5ebb47028520383ca494 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Thu, 21 Aug 2008 17:30:32 +0800 Subject: [PATCH] KVM: Userspace: Make " mak

RE: [ANNOUNCE] kvm-73 release

2008-08-21 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >> Hi, Avi >>Since ia64 has supported userspace's build, could we include ia64 >> bits in next release? >> > > I updated my scripts. I'll send you a test tarball via private mail > to see I hadn'

RE: [ANNOUNCE] kvm-73 release

2008-08-21 Thread Zhang, Xiantao
Avi Kivity wrote: > Avi Kivity wrote: >> Zhang, Xiantao wrote: >>> Hi, AviSince ia64 has supported userspace's build, could we >>> include ia64 bits in next release? >> >> I updated my scripts. I'll send you a test tarball via private mail >

[PATCH] KVM: Qemu: Enable kvm/ia64's network.

2008-08-22 Thread Zhang, Xiantao
Hi, Avi Please help to apply this patch. It will fix kvm/ia64's networking issue. Thanks Xiantao >From fe6e28ce9295acba107438979fe6ead0d24f7e20 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Fri, 22 Aug 2008 17:14:15 +0800 Subject: [PATCH] KVM: Qemu: Enable kvm/ia64's ne

[PATCH]KVM: kvm/ia64: select ANON_INODES PREEMPT_NOTIFIERS, once

2008-08-22 Thread Zhang, Xiantao
>From 2c14c54eed790553fddbcb3970f0967a4aa79dca Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Sat, 23 Aug 2008 10:21:06 +0800 Subject: [PATCH] KVM: kvm/ia64: select ANON_INODES PREEMPT_NOTIFIERS, once virtualization configured. Once virtulization configured, make PREEMPT_NO

RE: [PATCH] KVM: Qemu: Enable kvm/ia64's network.

2008-08-24 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >> Hi, Avi >>Please help to apply this patch. It will fix kvm/ia64's >> networking issue. Thanks >> Xiantao >> From fe6e28ce9295acba107438979fe6ead0d24f7e20 Mon Sep 17 00:00:00 >> 2001 From: Xiantao Zhang &

RE: [PATCH] KVM: Qemu: Enable kvm/ia64's network.

2008-08-24 Thread Zhang, Xiantao
pci_dev->irq_state[irq_num] = level; + +#if defined(TARGET_IA64) +ioapic_set_irq(pci_dev, irq_num, level); +#endif + for (;;) { bus = pci_dev->bus; irq_num = bus->map_irq(pci_dev, irq_num); -- 1.5.1 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL P

RE: [PATCH]KVM: kvm/ia64: select ANON_INODES PREEMPT_NOTIFIERS, once

2008-08-25 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >> From 2c14c54eed790553fddbcb3970f0967a4aa79dca Mon Sep 17 00:00:00 >> 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> >> Date: Sat, 23 Aug 2008 10:21:06 +0800 >> Subject: [PATCH] KVM: kvm/ia64: select ANON_INODES >>

RE: [PATCH]KVM: kvm/ia64: select ANON_INODES PREEMPT_NOTIFIERS, once

2008-08-25 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >> Avi Kivity wrote: >> >>> Zhang, Xiantao wrote: >>> >>>> From 2c14c54eed790553fddbcb3970f0967a4aa79dca Mon Sep 17 00:00:00 >>>> 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> >>>>

[PATCH] KVM:Qemu: Enable virtio for kvm/ia64.

2008-08-25 Thread Zhang, Xiantao
>From 31f8488afa4336362464ed5b9f0c84a9a0fd0c94 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Mon, 25 Aug 2008 18:57:39 +0800 Subject: [PATCH] KVM:Qemu: Enable virtio for kvm/ia64. Enable virtio-blk for kvm/ia64. Signed-off-by: Xiantao Zhang <[EMAIL PROTECTED]> --- qemu/hw

RE: [PATCH]KVM: kvm/ia64: select ANON_INODES PREEMPT_NOTIFIERS, once

2008-08-25 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >> But if users don't configure it @ building kernel, they can't >> exercise kvm unless re-configure and re-build the host kernel. >> Generally, we should allow users to build kvm in the form of >> modules, and

[PATCH]IA64: KVM: Enable virtio driver for ia64 in Kconfig.

2008-08-25 Thread Zhang, Xiantao
Since userspace is ready to use virtio driver. Enable it for ia64 in kernel. Thanks Xiantao >From 5bc596fd2a18aa6d325686dc257952b1d6fb436b Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Tue, 26 Aug 2008 08:58:53 +0800 Subject: [PATCH] IA64: KVM: Enable virtio driver for ia

RE: [PATCH 2/2] KVM: Device Assignment with VT-d

2008-08-26 Thread Zhang, Xiantao
Maybe vtd.c should be put @ virt/kvm so that ia64 can share it to avoid future code move. Thanks Xiantao Amit Shah wrote: > From: Ben-Ami Yassour <[EMAIL PROTECTED]> > > Based on a patch by: Kay, Allen M <[EMAIL PROTECTED]> > > This patch enables PCI device assignment based on VT-d support. >

RE: [PATCH 2/2] KVM: Device Assignment with VT-d

2008-08-26 Thread Zhang, Xiantao
Amit Shah wrote: > * On Tuesday 26 Aug 2008 15:58:42 Zhang, Xiantao wrote: >> Maybe vtd.c should be put @ virt/kvm so that ia64 can share it to >> avoid future code move. > > As of now, device assignment resides inside the x86 directory and is > only tested in x86 envi

RE: [PATCH 2/2] KVM: Device Assignment with VT-d

2008-08-26 Thread Zhang, Xiantao
Amit Shah wrote: > * On Tuesday 26 Aug 2008 16:12:56 Zhang, Xiantao wrote: >> Amit Shah wrote: >>> * On Tuesday 26 Aug 2008 15:58:42 Zhang, Xiantao wrote: >>>> Maybe vtd.c should be put @ virt/kvm so that ia64 can share it to >>>> avoid future code m

RE: [ANNOUNCE] kvm-73 release

2008-08-26 Thread Zhang, Xiantao
l-module-compat.h @@ -5,6 +5,7 @@ #include #include +#include #include "../external-module-compat-comm.h" diff --git a/kernel/hack-module.awk b/kernel/x86/hack-module.awk similarity index 100% rename from kernel/hack-module.awk rename to kernel/x86/hack-module.awk -- 1.5.1 Zhan

RE: [ANNOUNCE] kvm-73 release

2008-08-26 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >> Hi, Avi >>A updated version. Please review again. Thanks. >> Xiantao >> From 689bdb4c0506a1b6b24e9c481634593052ee2cc0 Mon Sep 17 00:00:00 >> 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> >> Date: Tue,

KVM/IA64: Implement kvm_arch_vcpu_ioctl_{set,get}_mpstate.

2008-08-27 Thread Zhang, Xiantao
>From 74cc2bedddc4f97d8901a43d5ac65f938156e2df Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Thu, 28 Aug 2008 09:34:08 +0800 Subject: [PATCH] KVM/IA64: Implement kvm_arch_vcpu_ioctl_{set,get}_mpstate. Two ioctl arch functions are added to set/get vcpu's mpstate. Signed-off

[PATCH] [Userspace] kvm/ia64: Qemu : Add get/set_mpstate for Ipf.

2008-08-27 Thread Zhang, Xiantao
>From 1de77b49314cfbabd65a6aef4d25430de22f2a61 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Thu, 28 Aug 2008 11:04:02 +0800 Subject: [PATCH] kvm/ia64: Qemu : Add get/set_mpstate for Ipf. Add get/set_mpstate for Ipf. Signed-off-by: Xiantao Zhang <[EMAIL PROTECTED]> --- li

RE: MADV_DONTFORK undeclared

2008-08-28 Thread Zhang, Xiantao
Dietmar Maurer wrote: > Compiling latest version 74 give me (on debian 4.0): > > /home/dietmar/pve/pve-kvm-2.6.24/kvm-74/qemu/qemu-kvm.c: In function > 'kvm_setup_guest_memory': > /home/dietmar/pve/pve-kvm-2.6.24/kvm-74/qemu/qemu-kvm.c:821: error: > 'MADV_DONTFORK' undeclared (first use in this fu

RE: MADV_DONTFORK undeclared

2008-08-28 Thread Zhang, Xiantao
Dietmar Maurer wrote: > Well, I guess I need to update my kernel headers Yeah :) >> -Ursprüngliche Nachricht- >> Von: Zhang, Xiantao [mailto:[EMAIL PROTECTED] >> Gesendet: Donnerstag, 28. August 2008 13:01 >> An: Dietmar Maurer; kvm@vger.kernel.org &g

[PATCH] Fix a typo.

2008-08-28 Thread Zhang, Xiantao
>From 297fb289f827e7921ae105d3a8ff79ca4c43a03a Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Fri, 29 Aug 2008 10:55:26 +0800 Subject: [PATCH] kvm: Qemu: Fix a typo. VGA_RAM_SIZE -> GFW_SIZE. Signed-off-by: Xiantao Zhang <[EMAIL PROTECTED]> --- qemu/hw/ipf.c |2 +- 1 f

RE: [PATCH] [Userspace] kvm/ia64: Qemu : Add get/set_mpstate for Ipf.

2008-08-29 Thread Zhang, Xiantao
Resend. Privious one forgets to remove debug info. Sorry! Xiantao >From 8c032c78665745ef421a75d2a9465d392f068c93 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Sat, 30 Aug 2008 08:36:03 +0800 Subject: [PATCH] kvm/ia64: Qemu : Add get/set_mpstate for Ipf. Add get/set_mpstat

[PATCH] KVM: Qemu: Set default pm_io_base to 0x1f40.

2008-08-31 Thread Zhang, Xiantao
>From 6039f279745733c52b291ec45c69eca028567c62 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Sun, 31 Aug 2008 14:27:23 +0800 Subject: [PATCH] KVM: Qemu: Set default pm_io_base to 0x1f40. The firmware of kvm/ia64 use 0x1f40 as default pm_io_base, and doesn't have re-configu

RE: [PATCH] KVM: Qemu: Set default pm_io_base to 0x1f40.

2008-08-31 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >> From 6039f279745733c52b291ec45c69eca028567c62 Mon Sep 17 00:00:00 >> 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> >> Date: Sun, 31 Aug 2008 14:27:23 +0800 >> Subject: [PATCH] KVM: Qemu: Set default pm_io_base to 0x1f40

RE: [PATCH] KVM: Qemu: Set default pm_io_base to 0x1f40.

2008-08-31 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >> Avi Kivity wrote: >> >>> Zhang, Xiantao wrote: >>> >>>> From 6039f279745733c52b291ec45c69eca028567c62 Mon Sep 17 00:00:00 >>>> 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> >>>>

RE: [patch] qemu fix missing prototypes on ia64 and minor cleanups

2008-09-04 Thread Zhang, Xiantao
Jes Sorensen wrote: > Hi, > > This one kills a few missing prototype warnings during compile time > on ia64. These are always risky given that the Linux ia64 text and > data segments are outside the 32bit window > > cheers, > Jes Thanks Jes! Maybe we should do more investigations on such co

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

2008-09-05 Thread Zhang, Xiantao
For kvm/ia64, kvm-intel module is relocated to an special address space which is isolated from host address space, so it can't call printk of host kernel. For printk support, we firstly log the printk output to a log buffer, and on every vm exit vcpu helps to print the log to host kernel log buffer

[PATCH][1/3] kvm/ia64: Add printk support for kvm-intel modules.

2008-09-05 Thread Zhang, Xiantao
>From 664b02928d8243def2acabe99b33eb5fad77bad1 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Fri, 5 Sep 2008 11:04:24 +0800 Subject: [PATCH] kvm/ia64: Add printk support for kvm-intel modules. Since this module will be reloated to an isolated address space from host side,

[PATCH] [2/3]kvm/ia64: Add show_registers for kvm-intel.

2008-09-05 Thread Zhang, Xiantao
>From 854b17c64d425c685160d50686bd15fcf5e862bd Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Fri, 5 Sep 2008 19:02:32 +0800 Subject: [PATCH] kvm/ia64: Add show_registers for kvm-intel. Add show_registers for kvm-intel, and call it to show registers once vm panic. Signed-of

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

2008-09-05 Thread Zhang, Xiantao
>From b0c2d5e90957341b6f1e13bc80d2bc77e9aa01be Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Sat, 6 Sep 2008 10:51:37 +0800 Subject: [PATCH] kvm/ia64: external module: Add printk support for kvm-intel. Signed-off-by: Xiantao Zhang <[EMAIL PROTECTED]> --- kernel/Makefile

RE: [PATCH 1/1] KVM/userspace: Support for assigning PCI devices to guests

2008-09-09 Thread Zhang, Xiantao
Hi, Amit > --- > libkvm/libkvm-x86.c | 14 + > libkvm/libkvm.h | 27 ++ > qemu/Makefile.target|1 + > qemu/hw/device-assignment.c | 600 > +++ > qemu/hw/device-assignment.h | 94 +++ qemu/hw/isa.h > |

[PATCH] kvm/ia64: Add printk support for kvm-intel modules.

2008-09-09 Thread Zhang, Xiantao
Resend. Avi, Please help to apply it, Thanks! Xiantao >From 8df3865407420142f1e367616ca41ebf0a4e6e29 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Tue, 9 Sep 2008 22:47:55 +0800 Subject: [PATCH] kvm/ia64: Add printk support for kvm-intel modules. Since this mod

[PATCH] kvm/ia64: Add show_registers for kvm-intel.

2008-09-09 Thread Zhang, Xiantao
>From 854b17c64d425c685160d50686bd15fcf5e862bd Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Fri, 5 Sep 2008 19:02:32 +0800 Subject: [PATCH] kvm/ia64: Add show_registers for kvm-intel. Add show_registers for kvm-intel, and call it to show registers once vm panic. Signed-of

RE: [PATCH] kvm/ia64: Add printk support for kvm-intel modules.

2008-09-10 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >> Resend. >> Avi, >> Please help to apply it, Thanks! >> Xiantao >> >> > > (sorry for the late review) > >> Since this module will be reloated to an isolated address >> space from host

RE: [PATCH] kvm/ia64: Add printk support for kvm-intel modules.

2008-09-12 Thread Zhang, Xiantao
_LOG - 1, fmt, args); + va_end(args); + vcpu->arch.vmm_has_log = 1; + vmm_log->w_pointer++; + wmb(); + vmm_spin_unlock(&vmm_log->log_lock); + + return r; +} + module_init(kvm_vmm_init) module_exit(kvm_vmm_exit) -- 1.5.1 Avi Kivity wrote: > Zhang,

[PATCH] kvm/ia64: Implement an uniform vps interface.

2008-09-12 Thread Zhang, Xiantao
>From 83aad940031be99047ddefefda28fc38c24a4a8b Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Fri, 12 Sep 2008 20:23:11 +0800 Subject: [PATCH] kvm/ia64: Implement an uniform vps interface. An uniform entry kvm_vps_entry is added for vps_sync_write/read, vps_resume_handler/g

[PATCH] kvm/ia64: Add the support for Tukwila processors.

2008-09-12 Thread Zhang, Xiantao
>From d98f59097f2c94a6a4bd29163ee1fcb33553db47 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Sat, 13 Sep 2008 06:21:22 +0800 Subject: [PATCH] kvm/ia64: Add the support for Tukwila processors. In Tukwila processor, VT-i has been enhanced in its implementation, it is often c

RE: [PATCH] Make KVM compile on split source/object kernel configurations

2008-09-16 Thread Zhang, Xiantao
Alexander Graf wrote: > KVM as is assumes that the kernel obj dir and the kernel source dir > are at the same location. This is true for most self-built vanilla > kernels, but some distributions split these up (e.g. SUSE). > To keep compatible and have users have a good experience on building > KVM

RE: [PATCH] Make KVM compile on split source/object kernel configurations

2008-09-16 Thread Zhang, Xiantao
Alexander Graf wrote: > KVM as is assumes that the kernel obj dir and the kernel source dir > are at the same location. This is true for most self-built vanilla > kernels, but some distributions split these up (e.g. SUSE). > To keep compatible and have users have a good experience on building > KVM

RE: [PATCH] Make KVM compile on split source/object kernel configurations

2008-09-16 Thread Zhang, Xiantao
Alexander Graf wrote: > On Sep 16, 2008, at 9:22 AM, Zhang, Xiantao wrote: > >> Alexander Graf wrote: >>> KVM as is assumes that the kernel obj dir and the kernel source dir >>> are at the same location. This is true for most self-built vanilla >>> kernels

RE: [PATCH] KVM/userspace: Support for assigning PCI devices to guests

2008-09-16 Thread Zhang, Xiantao
Seems it lacks device-assignment.[c,h] ? Xiantao Amit Shah wrote: > [This still doesn't include some fixes to review comments. > I'm posting this just so that people can use this to test > or base their work off the latest patch.] > > From: Or Sagi <[EMAIL PROTECTED]> > From: Nir Peleg <[EMAIL PR

RE: [PATCH] KVM/userspace: Support for assigning PCI devices to guests

2008-09-16 Thread Zhang, Xiantao
Amit Shah wrote: > [This still doesn't include some fixes to review comments. > I'm posting this just so that people can use this to test > or base their work off the latest patch.] > > From: Or Sagi <[EMAIL PROTECTED]> > From: Nir Peleg <[EMAIL PROTECTED]> > From: Amit Shah <[EMAIL PROTECTED]> >

RE: [PATCH] KVM/userspace: Support for assigning PCI devices to guests

2008-09-16 Thread Zhang, Xiantao
Amit Shah wrote: > * On Wednesday 17 Sep 2008 11:24:52 Zhang, Xiantao wrote: >> Amit Shah wrote: >>> [This still doesn't include some fixes to review comments. >>> I'm posting this just so that people can use this to test >>> or base their work off the

RE: [PATCH] KVM/userspace: Support for assigning PCI devices to guests

2008-09-16 Thread Zhang, Xiantao
Amit Shah wrote: > * On Wednesday 17 Sep 2008 12:03:54 Zhang, Xiantao wrote: > >>>> Could you move this part to libkvm.c? it should be shared by all >>>> archs, I think. >>> >>> Yes, I have noted this comment from you when you sent it previousl

[PATCH]kvm/ia64: Qemu: Set pmcntrl to SCI_EN by default when initalize acpi.

2008-09-17 Thread Zhang, Xiantao
>From 80c85020dbb421053270b029c0bc4ca2a995f2e5 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Wed, 17 Sep 2008 15:10:37 +0800 Subject: [PATCH] kvm/ia64: Qemu: Set pmcntrl to SCI_EN by default when initalize acpi. Fix windows boot issue with acpi enabled. Signed-off-by: Xian

RE: [PATCH] Make KVM compile on split source/object kernel configurations

2008-09-17 Thread Zhang, Xiantao
Alexander Graf wrote: > On Sep 16, 2008, at 12:22 PM, Zhang, Xiantao wrote: > >> Alexander Graf wrote: >>> On Sep 16, 2008, at 9:22 AM, Zhang, Xiantao wrote: >>> >>>> Alexander Graf wrote: >>>>> KVM as is assumes that the kernel obj dir

[PATCH] kvm/ia64: Qemu : Fix Guest boot issue with >3G memory.

2008-09-18 Thread Zhang, Xiantao
Hi, Avi Seems this patch is missing after merging with Qemu upstream, please help to apply it again. Xiantao >From a6703684b67518ca614bbd2c23060d8f502136ce Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Thu, 18 Sep 2008 14:07:00 +0800 Subject: [PATCH] kvm/ia64: Qem

RE: Remaining passthrough/VT-d tasks list

2008-09-23 Thread Zhang, Xiantao
Yang, Sheng wrote: > On Wednesday 24 September 2008 14:15:15 Han, Weidong wrote: >> Hi all, >> >> The initial passthrough/VT-d patches have been in kvm, it's time to >> enhance it, and push them into 2.6.28. >> > > Some supplements: > >> Following is the remaining passthrough/VT-d tasks list: >

[PATCH 0/8] Patchset to enable vt-d support for kvm/ia64.

2008-09-28 Thread Zhang, Xiantao
In order to enable vt-d suport for kvm/ia64 guests, I worked out the patchset to make it happen. Please review. The first five patches have no changes for logic and just do code move. Xiantao [PATCH 1/8] kvm/vt-d: Moving vtd.c from arch/x86/kvm/ to virt/kvm/ [PATCH 2/8] kvm: Moving device_assignmen

[PATCH 1/8]kvm/vt-d: Moving vtd.c from arch/x86/kvm/ to virt/kvm/

2008-09-28 Thread Zhang, Xiantao
>From c7e6b365ce145caead0355b87e873c3180a47c5b Mon Sep 17 00:00:00 2001 From: Zhang xiantao <[EMAIL PROTECTED]> Date: Thu, 11 Sep 2008 13:19:32 +0800 Subject: [PATCH] kvm/vt-d: Moving vtd.c from arch/x86/kvm/ to virt/kvm/ Preparation for kvm/ia64 VT-d support. Signed-off-by: Zhan

[PATCH 2/8]kvm: Moving device_assignment logic to kvm_main.c

2008-09-28 Thread Zhang, Xiantao
>From 6840c86b777e4a561cc3df7222cf5eb0b0bb9226 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Sat, 27 Sep 2008 10:59:36 +0800 Subject: [PATCH] kvm: Moving device_assignment logic to kvm_main.c To share with other archs, this patch moves device_assignment logic to common par

[PATCH 3/8]kvm: Changing is_mmio_pfn to kvm_is_mmio_pfn, and make it common

2008-09-28 Thread Zhang, Xiantao
>From 3211cc7a86ba050114733f847361478ab25619d7 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Sat, 27 Sep 2008 10:55:40 +0800 Subject: [PATCH] kvm: Changing is_mmio_pfn to kvm_is_mmio_pfn, and make it common for all archs. Using kvm prefix to aovid polluting kernel's name

[PATCH 4/8]kvm: Split arch/x86/kvm/irq.c to two parts.

2008-09-28 Thread Zhang, Xiantao
>From bb0c01b997d16ff1c1b9b0e797a581577c385b54 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Mon, 29 Sep 2008 10:59:30 +0800 Subject: [PATCH] kvm: Split arch/x86/kvm/irq.c to two parts. Moving irq ack notification logic as common, and make it shared with ia64 side

[PATCH 5/8]kvm: Moving irqchip_in_kernel from ioapic.h to irq.h

2008-09-28 Thread Zhang, Xiantao
>From 458f35267872176ed470fd6c5156ccc874ce1dfe Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Sat, 27 Sep 2008 11:46:36 +0800 Subject: [PATCH] kvm: Moving irqchip_in_kernel from ioapic.h to irq.h Moving irqchip_in_kernel from ioapic.h to irq.h. Signed-off-by: Xiantao Zhang

[PATCH 6/8]kvm/ia64: Make pmt table be able to hold physical mmio entries.

2008-09-28 Thread Zhang, Xiantao
>From c459cae4b89b445a2b85be915b269676b6ff394f Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Sat, 27 Sep 2008 12:52:35 +0800 Subject: [PATCH] kvm/ia64: Make pmt table be able to hold physical mmio entries. Don't try to do put_page once the entries are mmio. Set the tag to

[PATCH 7/8]kvm/ia64: Add directed mmio range support for kvm guests.

2008-09-28 Thread Zhang, Xiantao
>From a9a2b3445876d788f076893c471f03c4abcfeddf Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Sun, 28 Sep 2008 01:39:46 -0700 Subject: [PATCH] kvm/ia64: Add directed mmio range support for kvm guests. Using vt-d, kvm guests can be assigned physcial devices, so this patch in

[PATCH 8/8]kvm/ia64: Add intel iommu support for guests.

2008-09-28 Thread Zhang, Xiantao
>From f9d62c51e6c73f62c865b7f5b45440a2d3add4bb Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Mon, 29 Sep 2008 11:00:57 +0800 Subject: [PATCH] kvm/ia64: Add intel iommu support for guests. With intel iommu hardware, we can assign devices to kvm/ia64 guests. Signed-off-by: X

kvm: External module: Compile irq_comm.c into external modules

2008-09-28 Thread Zhang, Xiantao
If the vt-d patchset is picked up, please apply this patch to userspace.git for external module support. >From 36c21b2cb81077b176c7447ccc77ce2823c79af5 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Mon, 29 Sep 2008 11:54:31 +0800 Subject: [PATCH] kvm: External module: Comp

RE: [PATCH 0/8] Patchset to enable vt-d support for kvm/ia64.

2008-10-02 Thread Zhang, Xiantao
struct kvm_irq_ack_notifier *kian) +{ + hlist_add_head(&kian->link, &kvm->arch.irq_ack_notifier_list); +} + +void kvm_unregister_irq_ack_notifier(struct kvm *kvm, + struct kvm_irq_ack_notifier *kian) +{ + hlist_del(&kian->link

RE: [PATCH 0/8] Patchset to enable vt-d support for kvm/ia64.

2008-10-02 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >> + >> +/* This should be called with the kvm->lock mutex held */ >> +void kvm_set_irq(struct kvm *kvm, int irq, int level) +{ >> +/* Not possible to detect if the guest uses the PIC or the >> + * IOAPIC. So

RE: [patch] fix build breakage of qemu/kvm on ia64

2008-10-02 Thread Zhang, Xiantao
Thanks Jes! Acked-by : Xiantao zhang <[EMAIL PROTECTED]> -Original Message- From: Jes Sorensen [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2008 11:37 PM To: Avi Kivity; [EMAIL PROTECTED]; kvm@vger.kernel.org; Zhang, Xiantao Subject: [patch] fix build breakage of qemu/

RE: [PATCH 6/8]kvm/ia64: Make pmt table be able to hold physical mmio entries.

2008-10-03 Thread Zhang, Xiantao
= 0; + } } return 0; -- 1.5.1 Amit Shah wrote: > * On Monday 29 Sep 2008 10:56:58 Zhang, Xiantao wrote: >> From c459cae4b89b445a2b85be915b269676b6ff394f Mon Sep 17 00:00:00 >> 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> >> Dat

RE: [PATCH 2/8]kvm: Moving device_assignment logic to kvm_main.c

2008-10-03 Thread Zhang, Xiantao
Amit Shah wrote: > * On Monday 29 Sep 2008 10:56:29 Zhang, Xiantao wrote: >> From: Xiantao Zhang <[EMAIL PROTECTED]> >> Date: Sat, 27 Sep 2008 10:59:36 +0800 >> Subject: [PATCH] kvm: Moving device_assignment logic to kvm_main.c >> >> To share with other ar

RE: [PATCH 2/8]kvm: Moving device_assignment logic to kvm_main.c

2008-10-03 Thread Zhang, Xiantao
Amit Shah wrote: > * On Friday 03 Oct 2008 13:02:05 Zhang, Xiantao wrote: >> Amit Shah wrote: >>> * On Monday 29 Sep 2008 10:56:29 Zhang, Xiantao wrote: >>>> From: Xiantao Zhang <[EMAIL PROTECTED]> >>>> Date: Sat, 27 Sep 2008 10:59:36 +0800 >>&

RE: [PATCH 2/8]kvm: Moving device_assignment logic to kvm_main.c

2008-10-05 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >>>> diff --git a/include/linux/kvm.h b/include/linux/kvm.h >>>> index 4269be1..9acf34a 100644 >>>> --- a/include/linux/kvm.h >>>> +++ b/include/linux/kvm.h >>>> @@ -383,7 +383,9 @@ struct

RE: [PATCH 3/8]kvm: Changing is_mmio_pfn to kvm_is_mmio_pfn, and make it common

2008-10-06 Thread Zhang, Xiantao
is_mmio_pfn(pfn)) mark_page_accessed(pfn_to_page(pfn)); } EXPORT_SYMBOL_GPL(kvm_set_pfn_accessed); void kvm_get_pfn(pfn_t pfn) { - if (!is_mmio_pfn(pfn)) + if (!kvm_is_mmio_pfn(pfn)) get_page(pfn_to_page(pfn)); } EXPORT_SYMBOL_GPL(kvm

RE: [PATCH 0/8] Patchset to enable vt-d support for kvm/ia64.

2008-10-07 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >> Avi Kivity wrote: >> >>> Zhang, Xiantao wrote: >>> >>>> + >>>> +/* This should be called with the kvm->lock mutex held */ >>>> +void kvm_set_irq(struct kvm *kvm, int irq, int leve

RE: [PATCH] [RESEND] VT-d: Support multiple device assignment to one guest

2008-10-07 Thread Zhang, Xiantao
Han, Weidong wrote: > #ifdef CONFIG_DMAR > int intel_iommu_found(void); > diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h > index 73b7c52..7a3e1b6 100644 > --- a/include/linux/kvm_host.h > +++ b/include/linux/kvm_host.h > @@ -293,6 +293,11 @@ struct kvm_irq_ack_notifier { >

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

2008-10-07 Thread Zhang, Xiantao
Okay, I will modify it to use variable size. -Original Message- From: Avi Kivity [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 9:19 PM To: Zhang, Xiantao Cc: [EMAIL PROTECTED]; Avi Kivity; kvm@vger.kernel.org Subject: Re: [PATCH][1/3] kvm/ia64: Add printk support for kvm

RE: [PATCH 2/8]kvm: Moving device_assignment logic to kvm_main.c

2008-10-07 Thread Zhang, Xiantao
Avi Kivity wrote: > Zhang, Xiantao wrote: >> Since linux-ia64 DMAR is not ready in kvm.git, and it should be in >> linux-ia64.git. So it should be in kvm.git once Avi merged with >> upstream, so I didn't enable it for kvm/ia64 now. You know, S390 >> has no pci s

[PATCH 00/08] Patchset to enable vt-d suport for kvm/ia64 V2.

2008-10-07 Thread Zhang, Xiantao
Hi, Avi I have rebased the patchset according to your comments, it can be applied to current tip of kvm.git. Please review again and apply if no other concerns. Thanks! Xiantao [PATCH 1/8] kvm/vt-d: Moving vtd.c from arch/x86/kvm/ to virt/kvm/ [PATCH 2/8] kvm: Moving device_assignment lo

[PATCH 01/08]

2008-10-07 Thread Zhang, Xiantao
>From e2a97bd0c64b446336b0995126e1e8df2eda9a00 Mon Sep 17 00:00:00 2001 From: Zhang xiantao <[EMAIL PROTECTED]> Date: Thu, 11 Sep 2008 13:19:32 +0800 Subject: [PATCH] kvm/vt-d: Moving vtd.c from arch/x86/kvm/ to virt/kvm/ Preparation for kvm/ia64 VT-d support. Signed-off-by: Zhan

[PATCH 02/08]kvm: Moving device_assignment logic to kvm_main.c

2008-10-07 Thread Zhang, Xiantao
>From 7b6a86a9308844dcd7357fc41b8de83644ebd49b Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Mon, 6 Oct 2008 13:47:38 +0800 Subject: [PATCH] kvm: Moving device_assignment logic to kvm_main.c To share with other archs, this patch moves device_assignment logic to common part

[PATCH 03/08]kvm: Changing is_mmio_pfn to kvm_is_mmio_pfn, and make it common for all archs.

2008-10-07 Thread Zhang, Xiantao
>From 1f68c87622830b375a9dc5a14e740ba7e74b8182 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Sat, 27 Sep 2008 10:55:40 +0800 Subject: [PATCH] kvm: Changing is_mmio_pfn to kvm_is_mmio_pfn, and make it common for all archs. Using kvm prefix to aovid polluting kernel's name

[PATCH 04/08]kvm: Split arch/x86/kvm/irq.c to two parts.

2008-10-07 Thread Zhang, Xiantao
>From 720dab659e581adba3a7846db6d2f612ffcd83a0 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Mon, 6 Oct 2008 13:48:45 +0800 Subject: [PATCH] kvm: Split arch/x86/kvm/irq.c to two parts. Moving irq ack notification logic as common, and make it shared with ia64 side. Signed-o

[PATCH 05/08]kvm: Moving irqchip_in_kernel from ioapic.h to irq.h

2008-10-07 Thread Zhang, Xiantao
>From d8e586869041110bb43f05d7cce722240fa3abda Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Sat, 27 Sep 2008 11:46:36 +0800 Subject: [PATCH] kvm: Moving irqchip_in_kernel from ioapic.h to irq.h Moving irqchip_in_kernel from ioapic.h to irq.h. Signed-off-by: Xiantao Zhang

[PATCH 06/08] kvm/ia64: Make pmt table be able to hold physical mmio entries.

2008-10-07 Thread Zhang, Xiantao
>From 4a736a2b6c4771fa1683d75156db61c1e9ffadba Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Fri, 3 Oct 2008 14:58:09 +0800 Subject: [PATCH] kvm/ia64: Make pmt table be able to hold physical mmio entries. Don't try to do put_page once the entries are mmio. Set the tag to i

[PATCH 07/08] kvm/ia64: Add directed mmio range support for kvm guests.

2008-10-07 Thread Zhang, Xiantao
>From b6841719cb4cdc4f1631498d16de3a299741022d Mon Sep 17 00:00:00 2001 From: root <[EMAIL PROTECTED]> Date: Sun, 28 Sep 2008 01:39:46 -0700 Subject: [PATCH] kvm/ia64: Add directed mmio range support for kvm guests. Using vt-d, kvm guests can be assigned physcial devices, so this patch introduce a

  1   2   3   >