[kvm-devel] [15/17][PATCH] kvm/ia64: Add kvm sal/pal virtulization support. V8

2008-03-31 Thread Zhang, Xiantao
From e9f15f3838626eacface8a863394e6b8825182be Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:42:18 +0800 Subject: [PATCH] KVM:IA64 : Add kvm sal/pal virtulization support. Some sal/pal calls would be traped to kvm for virtulization from guest firmware.

[kvm-devel] [17/17][PATCH] kvm/ia64: How to boot up guests on kvm/ia64 -V8

2008-03-31 Thread Zhang, Xiantao
From b04624ce5ff919d776bf1d64b157d67410c6bc27 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:57:33 +0800 Subject: [PATCH] KVM:IA64 : How to boot up guests on kvm/ia64 Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- Documentation/ia64/kvm-howto.txt |

[kvm-devel] [03/15][PATCH] kvm/ia64: Add header files for kvm/ia64. V8

2008-03-31 Thread Zhang, Xiantao
From 03259a60f3c8104cd61f523f9ddeccce0e635782 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Fri, 28 Mar 2008 09:48:10 +0800 Subject: [PATCH] KVM: IA64: Add header files for kvm/ia64. Three header files are added: asm-ia64/kvm.h asm-ia64/kvm_host.h asm-ia64/kvm_para.h

[kvm-devel] [07/17][PATCH] kvm/ia64: Add TLB virtulization support.-V8

2008-03-31 Thread Zhang, Xiantao
From 6b731c15afa8cec84f16408c421c286f1dd1b7d3 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:45:40 +0800 Subject: [PATCH] KVM:IA64 : Add TLB virtulization support. vtlb.c includes tlb/VHPT virtulization. Signed-off-by: Anthony Xu [EMAIL PROTECTED]

Re: [kvm-devel] [01/17]PATCH Add API for allocating dynamic TR resouce. V8

2008-03-31 Thread Zhang, Xiantao
Jes Sorensen wrote: Hi Xiantao, I general I think the code in this patch is fine. I have a couple of nit-picking comments: +if (target_mask0x1) { The formatting here isn't quite what most of the kernel does. It would be better if you added spaces so it's a little easier to read,

Re: [kvm-devel] [02/17][PATCH] Implement smp_call_function_mask foria64 - V8

2008-03-31 Thread Zhang, Xiantao
Jes Sorensen wrote: Zhang, Xiantao wrote: From 697d50286088e98da5ac8653c80aaa96c81abf87 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Mon, 31 Mar 2008 09:50:24 +0800 Subject: [PATCH] KVM:IA64: Implement smp_call_function_mask for ia64 This function provides more

Re: [kvm-devel] [17/17][PATCH] kvm/ia64: How to boot up guests on kvm/ia64 -V8

2008-03-31 Thread Zhang, Xiantao
Akio Takebe wrote: Hi, Xiantao +3. Get Guest Firmware named as Flash.fd, and put it under right place: + (1) If you have the guest firmware (binary)released by Intel Corp for Xen, you can use it directly. +(2) If you want to build a guest firmware form source code. Please download

Re: [kvm-devel] [05/17][PATCH] kvm/ia64 : Add head files for kvm/ia64

2008-03-31 Thread Zhang, Xiantao
Jes Sorensen wrote: Hi Xiantao, Hi, Jes I fixed the coding style issues. Thanks! More comments. Zhang, Xiantao wrote: From 696b9eea9f5001a7b7a07c0e58514aa10306b91a Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Fri, 28 Mar 2008 09:51:36 +0800 Subject

Re: [kvm-devel] [kvm-ia64-devel] [03/15][PATCH] kvm/ia64: Add header files forkvm/ia64. V8

2008-03-31 Thread Zhang, Xiantao
Carsten Otte wrote: Zhang, Xiantao wrote: +typedef union context { +/* 8K size */ +chardummy[KVM_CONTEXT_SIZE]; +struct { +unsigned long psr; +unsigned long pr; +unsigned long caller_unat; +unsigned long

Re: [kvm-devel] [04/17] [PATCH] Add kvm arch-specific core code for kvm/ia64.-V8

2008-03-31 Thread Zhang, Xiantao
Carsten Otte wrote: Zhang, Xiantao wrote: +static struct kvm_vcpu *lid_to_vcpu(struct kvm *kvm, unsigned long id, +unsigned long eid) +{ +ia64_lid_t lid; +int i; + +for (i = 0; i KVM_MAX_VCPUS; i++) { +if (kvm-vcpus[i

Re: [kvm-devel] [04/17] [PATCH] Add kvm arch-specific core code for kvm/ia64.-V8

2008-03-31 Thread Zhang, Xiantao
Carsten Otte wrote: Zhang, Xiantao wrote: +static struct kvm_vcpu *lid_to_vcpu(struct kvm *kvm, unsigned long id, +unsigned long eid) +{ +ia64_lid_t lid; +int i; + +for (i = 0; i KVM_MAX_VCPUS; i++) { +if (kvm-vcpus[i

[kvm-devel] [Patch][00/17] kvm-ia64 for kernel V6

2008-03-28 Thread Zhang, Xiantao
Hi This patchset enables kvm on ia64 platform. And it targets for Avi's pull to mainline. Please review. If you don't have concerns, I will ask Avi's pull for kvm.git. Thanks! Also, you can get it from git://git.kernel.org/pub/scm/linux/kernel/git/xiantao/kvm-ia64.git kvm-ia64-mc6 Tony,

[kvm-devel] [15/17][PATCH] kvm/ia64: Add kvm sal/pal virtulization support.

2008-03-28 Thread Zhang, Xiantao
From ba064fc79c5d8577543ae6e4a201f622f0c4b777 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:42:18 +0800 Subject: [PATCH] kvm/ia64: Add kvm sal/pal virtulization support. Some sal/pal calls would be traped to kvm for virtulization from guest firmware.

[kvm-devel] [17/17][PATCH] kvm/ia64: How to boot up guests on kvm/ia64

2008-03-28 Thread Zhang, Xiantao
From 517a89fd248193f6a7049832e2c1b811afe98f96 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:57:33 +0800 Subject: [PATCH] kvm/ia64: How to boot up guests on kvm/ia64 Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- Documentation/ia64/kvm-howto.txt |

[kvm-devel] [06/17][PATCH] kvm/ia64: VMM module interfaces.

2008-03-28 Thread Zhang, Xiantao
From 6af8b4d7ca1d4ec40cc634cf8b0d5ae8d2dc53ce Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:44:37 +0800 Subject: [PATCH] kvm/ia64: VMM module interfaces. vmm.c adds the interfaces with kvm/module, and initialize global data area. Signed-off-by: Xiantao

[kvm-devel] [16/17] [PATCH] kvm:ia64 Enable kvm build for ia64

2008-03-28 Thread Zhang, Xiantao
From 0639faa4a3347771e793e33652667272cc140240 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Fri, 28 Mar 2008 14:58:47 +0800 Subject: [PATCH] kvm:ia64 Enable kvm build for ia64 Update the related Makefile and KConfig for kvm build Signed-off-by: Xiantao Zhang [EMAIL

[kvm-devel] [01/17]PATCH Add API for allocating dynamic TR resouce.

2008-03-28 Thread Zhang, Xiantao
Refined according to Tony's comments. From 837f0508a617ea0386808de9fd0f42ef4aefe5e0 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Thu, 27 Mar 2008 10:18:29 +0800 Subject: [PATCH] Add API for allocating TR resouce. Dynamic TR resouce should be managed in an uniform way.

[kvm-devel] [09/17] [PATCH] kvm/ia64: Add mmio decoder for kvm/ia64.

2008-03-28 Thread Zhang, Xiantao
From 5f82ea88c095cf89cbae920944c05e578f35365f Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 14:48:09 +0800 Subject: [PATCH] kvm/ia64: Add mmio decoder for kvm/ia64. mmio.c includes mmio decoder routines. Signed-off-by: Anthony Xu [EMAIL PROTECTED]

[kvm-devel] [07/17][PATCH] kvm/ia64: Add TLB virtulization support.

2008-03-28 Thread Zhang, Xiantao
From 56d3f7acf8d45d2491646be77ced344dcc516cd7 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:45:40 +0800 Subject: [PATCH] kvm/ia64: Add TLB virtulization support. vtlb.c includes tlb/VHPT virtulization. Signed-off-by: Anthony Xu [EMAIL PROTECTED]

[kvm-devel] [02/17][PATCH] Implement smp_call_function_mask for ia64

2008-03-28 Thread Zhang, Xiantao
From 9118d25b4e98bef3a62429f8c150e8d429396c40 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 12:58:02 +0800 Subject: [PATCH] Implement smp_call_function_mask for ia64 This function provides more flexible interface for smp infrastructure. Signed-off-by:

[kvm-devel] [13/17][PATCH] kvm/ia64: Generate offset values for assembly code use.

2008-03-28 Thread Zhang, Xiantao
From f21b39650592fff4d07c94730b0f4e9aa093b9a8 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:50:13 +0800 Subject: [PATCH] kvm/ia64: Generate offset values for assembly code use. asm-offsets.c will generate offset values used for assembly code for some

[kvm-devel] [12/17][PATCH] kvm/ia64: add optimization for some virtulization faults

2008-03-28 Thread Zhang, Xiantao
From 2dbf7c93ff5e36a221761c690ff12e7be48a6bb2 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:49:38 +0800 Subject: [PATCH] kvm/ia64: add optimization for some virtulization faults optvfault.S adds optimization for some performance-critical virtualization

Re: [kvm-devel] [08/17][PATCH] kvm/ia64: Add interruption vector table for vmm.

2008-03-28 Thread Zhang, Xiantao
Akio Takebe wrote: Hi, Xiantao a comments is below. +// 0x3000 Entry 12 (size 64 bundles) External Interrupt (4) +ENTRY(kvm_interrupt) +mov r31=pr// prepare to save predicates +mov r19=12 +mov r29=cr.ipsr +;; +tbit.z p6,p7=r29,IA64_PSR_VM_BIT +

Re: [kvm-devel] [14/17][PATCH] kvm/ia64: Add guest interruptioninjection support.

2008-03-28 Thread Zhang, Xiantao
INITIAL_PSR_VALUE_AT_INTERRUPTION 0x001808028034 + Xen also use this value, you had better use macros of PSR bits. Or you can add the same comments as Xen. Hi, Akio. The comment is where it is used. Anyway, using macro is better. Changed.

Re: [kvm-devel] [11/17][PATCH] kvm/ia64: add processor virtulization support.

2008-03-28 Thread Zhang, Xiantao
Akio Takebe wrote: Hi, Xiantao and Anthony +void getfpreg(unsigned long regnum, struct ia64_fpreg *fpval, +struct kvm_pt_regs *regs) +{ +/* Take floating register rotation into consideration*/ +if (regnum = IA64_FIRST_ROTATING_FR) +regnum =

Re: [kvm-devel] [17/17][PATCH] kvm/ia64: How to boot up guests on kvm/ia64

2008-03-28 Thread Zhang, Xiantao
Akio Takebe wrote: Hi, I found 3 typos. +3. Get Guest Firmware named as Flash.fd, and put it under right place: + (1) If you have the guest firmware (binary)released by Intel Corp for Xen, you can use it directly. +(2) If you want to build a guest firmware form souce code. souce

[kvm-devel] [Patch][00/17] kvm-ia64 for kernel V7

2008-03-28 Thread Zhang, Xiantao
Compared with V6, 1. Updated the PATCH 01 according to Tony's comments. 2. Updated the PATCH 14 according to Akio's comments. 3. Updated the PATCH 17 according to Akio's comments. The latest patchset is located at git://git.kernel.org/pub/scm/linux/kernel/git/xiantao/kvm-ia64.git kvm-ia64-mc7.

[kvm-devel] [17/17][PATCH] kvm/ia64: How to boot up guests on kvm/ia64 V7

2008-03-28 Thread Zhang, Xiantao
From 454e8a4473ed13ce313b2ba3b654feb926a891b7 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Wed, 12 Mar 2008 13:57:33 +0800 Subject: [PATCH] kvm/ia64: How to boot up guests on kvm/ia64 Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- Documentation/ia64/kvm-howto.txt |

[kvm-devel] [01/17]PATCH Add API for allocating dynamic TR resouce. V7

2008-03-28 Thread Zhang, Xiantao
From 1028321e00b0f3a60fc414484754f489a70f2400 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang [EMAIL PROTECTED] Date: Sat, 29 Mar 2008 09:23:37 +0800 Subject: [PATCH] Add API for allocating Dynamic TR resouce. Dynamic TR resouce should be managed in an uniform way. Signed-off-by: Xiantao Zhang

RE: [Xen-ia64-devel] [Q] How to download pv_ops git tree

2008-03-24 Thread Zhang, Xiantao
Akio Takebe wrote: Hi, Xiantao-san We also meet the same issue days ago. Maybe you can use the mirror I set up in repo.or.cz. It works well, if you are behind the http_proxy . It is easy to use, clone http://repo.or.cz/w/pv_ops_mirror.git, and checkout the related branches :) Xiantao

Re: [kvm-devel] [kvm-ppc-devel] [PATCH] Move kvm_get_pit tolibkvm.c common code

2008-03-23 Thread Zhang, Xiantao
Avi Kivity wrote: Hollis Blanchard wrote: Don't compile kvm_*_pit() on architectures whose currently supported platforms do not contain a PIT. Signed-off-by: Hollis Blanchard [EMAIL PROTECTED] diff --git a/libkvm/libkvm.h b/libkvm/libkvm.h --- a/libkvm/libkvm.h +++ b/libkvm/libkvm.h

RE: [Xen-ia64-devel] [Q] How to download pv_ops git tree

2008-03-22 Thread Zhang, Xiantao
Akio Takebe wrote: Hi, Eddie Thank you. I am not a git expert either :( But would you please check if the http_proxy is set correctly? Xiantao'tree support git port I think. Yes, I did export http_proxy=http://xxx.yyy.zzz:;, then git clone, but I cannot download it. I could get

Re: [kvm-devel] [kvm-ia64-devel] Cross-arch support for make sync in userspace

2008-03-20 Thread Zhang, Xiantao
Avi Kivity wrote: Zhang, Xiantao wrote: Hi, Avi Currently, make sync in userspace only syncs x86-specific heads from kernel source due to hard-coded in Makefile. Do you have plan to provide cross-arch support for that? No plans. I'll apply patches though. But don't you need kernel

Re: [kvm-devel] [kvm-ia64-devel] Cross-arch support for make syncin userspace

2008-03-20 Thread Zhang, Xiantao
Avi Kivity wrote: Zhang, Xiantao wrote: Avi Kivity wrote: I see. ./configure --with-patched-kernel should work for that, but I have no issue with copying include/asm-ia64 either. Copy should be ugly, since it needs extral documentation to describle. If --with-patched-kernel can call

[kvm-devel] Cross-arch support for make sync in userspace

2008-03-19 Thread Zhang, Xiantao
Hi, Avi Currently, make sync in userspace only syncs x86-specific heads from kernel source due to hard-coded in Makefile. Do you have plan to provide cross-arch support for that? Other archs may need it for save/restore :) Thanks Xiantao

[kvm-devel] Comment out qemu_system_cpu_hot_add for ia64

2008-03-19 Thread Zhang, Xiantao
From: Xiantao Zhang [EMAIL PROTECTED] Date: Thu, 20 Mar 2008 10:17:29 +0800 Subject: [PATCH] kvm:qemu: qemu_system_cpu_hot_add not supported for ia64. Comment it out first for ia64 build. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- qemu/hw/acpi.c |4 ++-- 1 files changed, 2

RE: [Xen-ia64-devel] GFW release

2008-03-13 Thread Zhang, Xiantao
I checked it at kvm side. It also works well. :) Xiantao -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tristan Gingold Sent: 2008年3月13日 20:46 To: Xen-ia64-devel Subject: [Xen-ia64-devel] GFW release Hi, I have just updated the GFW binary. Please

[kvm-devel] kvm-ia64.git is created on master.kernel.org!

2008-03-12 Thread Zhang, Xiantao
Hi, guys We have created kvm-ia64.git on master.kernel.org for open development, and the latest source is also included in this repository. So you can clone and make contributions to it now. Cheers!! In this repository, I created the branch kvm-ia64-mc4 to hold the patchset. Now, the whole

Re: [kvm-devel] [kvm-ia64-devel] kvm-ia64.git is created on master.kernel.org!

2008-03-12 Thread Zhang, Xiantao
Akio Takebe wrote: Hi, Xiantao We have created kvm-ia64.git on master.kernel.org for open development, and the latest source is also included in this repository. So you can clone and make contributions to it now. Cheers!! In this repository, I created the branch kvm-ia64-mc4 to hold

Re: [kvm-devel] [PATCH] Using kzalloc to avoid allocating kvm_regs from kernel stack

2008-02-25 Thread Zhang, Xiantao
Please use the new one. Add the check for failed allocation. From: Xiantao Zhang [EMAIL PROTECTED] Date: Mon, 25 Feb 2008 17:25:07 +0800 Subject: [PATCH] kvm: Using kzalloc to avoid allocating kvm_regs from kernel stack. Since the size of kvm_regs maybe too big to allocate from kernel stack,

[kvm-devel] [PATCH] Using kzalloc to avoid allocating kvm_regs from kernel stack

2008-02-25 Thread Zhang, Xiantao
From: Xiantao Zhang [EMAIL PROTECTED] Date: Mon, 25 Feb 2008 17:11:43 +0800 Subject: [PATCH] kvm: Using kzalloc to avoid allocating kvm_regs from kernel stack. Since the size of struct kvm_regs maybe too big to allocate from kernel stack, here use kzalloc to allocate it. Signed-off-by: Xiantao

[Xen-ia64-devel] RE: tools/ioemu/ia64.ld ?

2008-02-22 Thread Zhang, Xiantao
Aron Griffis wrote: Hi, Does anybody know why xen's ioemu has its own custom linker script? This was inherited from qemu, apparently contributed by David Mosberger over 2 years ago. It's been patched for kvm (see http://www.mail-archive.com/[EMAIL PROTECTED]/msg10306.htm l) but as far as

[Xen-ia64-devel] RE: [PATCH] [Open GFW] Only use irq 10 and 11 for pci use.

2008-02-19 Thread Zhang, Xiantao
Hi, Tristan Thank you! Attached. Xiantao -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 2008年2月20日 0:40 To: Zhang, Xiantao Cc: Tristan Gingold; xen-ia64-devel Subject: RE: [PATCH] [Open GFW] Only use irq 10 and 11 for pci use. Quoting Zhang, Xiantao

RE: paravirt_ops support in IA64

2008-02-17 Thread Zhang, Xiantao
Dong, Eddie wrote: In X86, there are another enhancement (dynamic patching) base on pv_ops. The purpose is to improve cpu predication by converting indriect function call to direct function call for both C ASM code. We may take similar approach some time later too. We

[Xen-ia64-devel] RE: paravirt_ops support in IA64

2008-02-17 Thread Zhang, Xiantao
Dong, Eddie wrote: In X86, there are another enhancement (dynamic patching) base on pv_ops. The purpose is to improve cpu predication by converting indriect function call to direct function call for both C ASM code. We may take similar approach some time later too. We

RE: [Xen-ia64-devel] MINSTATE_PHYS?

2008-02-17 Thread Zhang, Xiantao
Hi, Alex What's your opinion about this cleanup patch ? Thanks Xiantao -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zhang, Xiantao Sent: 2008年2月2日 10:17 To: Akio Takebe; Dong, Eddie; xen-ia64-devel Cc: Alex Williamson Subject: RE: [Xen-ia64

[kvm-devel] [PATCH] kvm also need to workaround changes about tcg code

2008-02-14 Thread Zhang, Xiantao
From: Xiantao Zhang [EMAIL PROTECTED] Date: Fri, 15 Feb 2008 10:50:22 +0800 Subject: [PATCH] qemu: IA64 also need to workaround tcg code. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- qemu/dyngen.c|1 - qemu/hw/ipf.c|1 - qemu/target-ia64/fake-exec.c |

Re: [kvm-devel] [PATCH][21] Readme for kvm/ia64 boot.

2008-02-07 Thread Zhang, Xiantao
Akio Takebe wrote: Hi, Xiantao From: Zhang Xiantao [EMAIL PROTECTED] Date: Tue, 29 Jan 2008 17:27:06 +0800 Subject: [PATCH] README: How to boot up guests on kvm/ia64 Guide: How to boot up guests on kvm/ia64 Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- arch/ia64/kvm/README | 72

RE: [kvm-devel] [PATCH][21] Readme for kvm/ia64 boot.

2008-02-07 Thread Zhang, Xiantao
Akio Takebe wrote: Hi, Xiantao From: Zhang Xiantao [EMAIL PROTECTED] Date: Tue, 29 Jan 2008 17:27:06 +0800 Subject: [PATCH] README: How to boot up guests on kvm/ia64 Guide: How to boot up guests on kvm/ia64 Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- arch/ia64/kvm/README | 72

[kvm-devel] Kvm/ia64 has enabled saverestore and Live migration.

2008-02-03 Thread Zhang, Xiantao
Hi, all Thank you for your intention about kvm/ia64. Now, we have enabled save/restore and Live migration on kvm/ia64, and will send out the implementation after the leave for Chinese New Year!(Feb 4- Feb 11). Thanks! Xiantao

[kvm-devel] [PATCH] Make non-x86 arch partially support make sync.

2008-02-01 Thread Zhang, Xiantao
From: Xiantao Zhang [EMAIL PROTECTED] Date: Fri, 1 Feb 2008 17:18:03 +0800 Subject: [PATCH] Make non-x86 arch partially support make sync. Make non-x86 arch partially support make sync, and other archs can get right header files for userspace. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] ---

[Xen-ia64-devel] VHPI restore mechanism at save/restore

2008-02-01 Thread Zhang, Xiantao
Hi,Isaku I have a question about the mechanism for save/restore vhpi. In current save/restore code, vhpi register is only saved and restored by vlsapic_save/load, but it maybe not enough for ensuring correctness. IMO, we need to call PAL_VPS_SET_PENDING_INTERRUPT again to set it, and make cpu

RE: [Xen-ia64-devel] VHPI restore mechanism at save/restore

2008-02-01 Thread Zhang, Xiantao
Isaku Yamahata wrote: On Fri, Feb 01, 2008 at 06:11:13PM +0800, Zhang, Xiantao wrote: Hi,Isaku I have a question about the mechanism for save/restore vhpi. In current save/restore code, vhpi register is only saved and restored by vlsapic_save/load, but it maybe not enough for ensuring

RE: [Xen-ia64-devel] MINSTATE_PHYS?

2008-02-01 Thread Zhang, Xiantao
Akio Takebe wrote: Hi, Eddie and Kaz I did a quick grep and find MINSTATE_PHYS is never defined in xenlinux. Xen mca code did. Anything missed? The minstate.h is a little old, it seems to be around linux-2.6.9. Current linux-xen is 2.6.18, so the code may be not nessesary. Kaz, do you

Re: [kvm-devel] [PATCH] Making SLIRP code more 64-bit clean

2008-01-31 Thread Zhang, Xiantao
Unfortunately, it can's apply on tip. Could you attach the diff ? Thanks Xiantao - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.

[kvm-devel] [PATCH] [01]Appoint kvm/ia64 maintainers

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Thu, 31 Jan 2008 12:03:39 +0800 Subject: [PATCH] Appoint kvm/ia64 Maintainers Signed-off-by Anthony Xu [EMAIL PROTECTED] Signed-off-by Xiantao Zhang [EMAIL PROTECTED] --- MAINTAINERS |9 + 1 files changed, 9 insertions(+), 0 deletions

[kvm-devel] [PATCH][18]add Kconfig for kvm configuration.

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Tue, 29 Jan 2008 14:42:44 +0800 Subject: [PATCH] kvm/ia64: add Kconfig for kvm configuration. Kconfig adds kvm/ia64 configurations at kernel configuration time. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- arch/ia64/kvm/Kconfig | 43

[kvm-devel] [PATCH] [19]Add Makefile for kvm files compile.

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Tue, 29 Jan 2008 14:43:32 +0800 Subject: [PATCH] kvm/ia64: Add Makefile for kvm files compile. Adds Makefile for kvm compile. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- arch/ia64/kvm/Makefile | 61

[kvm-devel] [PATCH][15]add optimization for some virtulization faults

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Tue, 29 Jan 2008 14:35:44 +0800 Subject: [PATCH] kvm/ia64: add optimization for some virtulization faults optvfault.S adds optimization for some performance-critical virtualization faults. Signed-off-by: Anthony Xu [EMAIL PROTECTED] Signed-off

[kvm-devel] [PATCH][21] Readme for kvm/ia64 boot.

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Tue, 29 Jan 2008 17:27:06 +0800 Subject: [PATCH] README: How to boot up guests on kvm/ia64 Guide: How to boot up guests on kvm/ia64 Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- arch/ia64/kvm/README | 72

[kvm-devel] [PATCH][16] Generate offset values for assembly code use.

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Tue, 29 Jan 2008 14:40:41 +0800 Subject: [PATCH] kvm/ia64: Generate offset values for assembly code use. asm-offsets.c will generate offset values used for assembly code for some fileds of special structures. Signed-off-by: Anthony Xu [EMAIL PROTECTED

[kvm-devel] [PATCH][03]Export some symbols out for module use.

2008-01-31 Thread Zhang, Xiantao
From: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Thu, 17 Jan 2008 14:03:04 +0800 Subject: [PATCH] kvm: ia64 : Export some symbols out for module use. Export empty_zero_page, ia64_sal_cache_flush, ia64_sal_freq_base in this patch. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] ---

[kvm-devel] [PATCH][09]VMM module interfaces.

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Tue, 29 Jan 2008 13:31:55 +0800 Subject: [PATCH] kvm/ia64: VMM module interfaces. vmm.c adds the interfaces with kvm/module, and initialize global data area. Signed-off-by: Xiantao Zhang[EMAIL PROTECTED] --- arch/ia64/kvm/vmm.c | 57

[kvm-devel] [PATCH][07] Add kvm sal/pal virtulization support.

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Tue, 29 Jan 2008 13:15:05 +0800 Subject: [PATCH] kvm/ia64: Add kvm sal/pal virtulization support. Some sal/pal calls would be traped to kvm for virtulization from guest firmware. Signed-off-by: Xiantao Zhang[EMAIL PROTECTED] --- arch/ia64/kvm/kvm_fw.c

[kvm-devel] [PATCH][05] Add header files for kvm/ia64.

2008-01-31 Thread Zhang, Xiantao
for ia64 + * + * Copyright (C) 2007 Zhang Xiantao [EMAIL PROTECTED] + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program

[kvm-devel] [PATCH][04]Add API for allocating TR resouce.

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Thu, 31 Jan 2008 17:10:52 +0800 Subject: [PATCH] Add API for allocating TR resouce. Dynamic TR resouce should be managed in an uniform way. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Anthony Xu[EMAIL PROTECTED] --- arch/ia64/kernel

[kvm-devel] [PATCH][10] Add TLB virtulization support.

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Tue, 29 Jan 2008 14:26:29 +0800 Subject: [PATCH] kvm/ia64: Add TLB virtulization support. vtlb.c includes tlb/VHPT virtulization. Signed-off-by: Anthony Xu [EMAIL PROTECTED] Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- arch/ia64/kvm/vtlb.c | 606

[kvm-devel] [PATCH] [00]Patch set to enable kvm on ia64 platforms

2008-01-31 Thread Zhang, Xiantao
Hi, Avi/Tony We have rebased kvm/ia64 code to latest kvm. In this version, we have fixed coding style issues, and all patches can pass checkpatch.pl, except one assembly header file, which is copyied from kernel, so we didn't change its issues. Compared with last version, we implemented

Re: [kvm-devel] [kvm-ia64-devel] [Qemu-devel] Re: [PATCH] MakingSLIRP code more 64-bit clean

2008-01-31 Thread Zhang, Xiantao
Blue Swirl wrote: On 1/30/08, Scott Pakin [EMAIL PROTECTED] wrote: Zhang, Xiantao wrote: Scott Pakin wrote: The attached patch corrects a bug in qemu/slirp/tcp_var.h that defines the seg_next field in struct tcpcb to be 32 bits wide regardless of 32/64-bitness. seg_next is assigned

Re: [kvm-devel] [kvm-ia64-devel] [PATCH] Making SLIRP code more64-bit clean

2008-01-31 Thread Zhang, Xiantao
Scott Pakin wrote: Zhang, Xiantao wrote: Scott Pakin wrote: The attached patch corrects a bug in qemu/slirp/tcp_var.h that defines the seg_next field in struct tcpcb to be 32 bits wide regardless of 32/64-bitness. seg_next is assigned a pointer value in qemu/slirp/tcp_subr.c, then cast back

Re: [kvm-devel] [kvm-ia64-devel] [PATCH][02] Change srlz.d to srlz.i foria64_set_psr

2008-01-31 Thread Zhang, Xiantao
Akio Takebe wrote: Hi, Xiantao void __init diff --git a/include/asm-ia64/processor.h b/include/asm-ia64/processor.h index be3b0ae..038642f 100644 --- a/include/asm-ia64/processor.h +++ b/include/asm-ia64/processor.h @@ -472,7 +472,7 @@ ia64_set_psr (__u64 psr) { ia64_stop();

Re: [kvm-devel] [kvm-ia64-devel] [PATCH][10] Add TLB virtulization support.

2008-01-31 Thread Zhang, Xiantao
Akio Takebe wrote: Hi, Xiantao +void thash_vhpt_insert(VCPU *v, u64 pte, u64 itir, u64 va, int type) +{ + u64 phy_pte, psr; +ia64_rr mrr; + +mrr.val = ia64_get_rr(va); +phy_pte = translate_phy_pte(pte, itir, va); + +if (itir_ps(itir) = mrr.ps) { +

[PATCH][09]VMM module interfaces.

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Tue, 29 Jan 2008 13:31:55 +0800 Subject: [PATCH] kvm/ia64: VMM module interfaces. vmm.c adds the interfaces with kvm/module, and initialize global data area. Signed-off-by: Xiantao Zhang[EMAIL PROTECTED] --- arch/ia64/kvm/vmm.c | 57

[PATCH][07] Add kvm sal/pal virtulization support.

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Tue, 29 Jan 2008 13:15:05 +0800 Subject: [PATCH] kvm/ia64: Add kvm sal/pal virtulization support. Some sal/pal calls would be traped to kvm for virtulization from guest firmware. Signed-off-by: Xiantao Zhang[EMAIL PROTECTED] --- arch/ia64/kvm/kvm_fw.c

[PATCH][05] Add header files for kvm/ia64.

2008-01-31 Thread Zhang, Xiantao
for ia64 + * + * Copyright (C) 2007 Zhang Xiantao [EMAIL PROTECTED] + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program

[PATCH] [11]Add mmio decoder for kvm/ia64.

2008-01-31 Thread Zhang, Xiantao
From: Xiantao Zhang [EMAIL PROTECTED] Date: Thu, 31 Jan 2008 15:45:48 +0800 Subject: [PATCH] kvm/ia64: Add mmio decoder for kvm/ia64. mmio.c includes mmio decoder routines. Signed-off-by: Anthony Xu [EMAIL PROTECTED] Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- arch/ia64/kvm/mmio.c | 349

[PATCH] [13]Add trampoline for guest/host mode switch.

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Tue, 29 Jan 2008 14:32:14 +0800 Subject: [PATCH] kvm/ia64: Add trampoline for guest/host mode switch. trampoline.S is for guest/host mode switch. Signed-off-by: Anthony Xu [EMAIL PROTECTED] Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- arch/ia64

[PATCH] [00]Patch set to enable kvm on ia64 platforms

2008-01-31 Thread Zhang, Xiantao
Hi, Avi/Tony We have rebased kvm/ia64 code to latest kvm. In this version, we have fixed coding style issues, and all patches can pass checkpatch.pl, except one assembly header file, which is copyied from kernel, so we didn't change its issues. Compared with last version, we implemented

[PATCH][03]Export some symbols out for module use.

2008-01-31 Thread Zhang, Xiantao
From: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Thu, 17 Jan 2008 14:03:04 +0800 Subject: [PATCH] kvm: ia64 : Export some symbols out for module use. Export empty_zero_page, ia64_sal_cache_flush, ia64_sal_freq_base in this patch. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] ---

[PATCH][21] Readme for kvm/ia64 boot.

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Tue, 29 Jan 2008 17:27:06 +0800 Subject: [PATCH] README: How to boot up guests on kvm/ia64 Guide: How to boot up guests on kvm/ia64 Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- arch/ia64/kvm/README | 72

[PATCH][15]add optimization for some virtulization faults

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Tue, 29 Jan 2008 14:35:44 +0800 Subject: [PATCH] kvm/ia64: add optimization for some virtulization faults optvfault.S adds optimization for some performance-critical virtualization faults. Signed-off-by: Anthony Xu [EMAIL PROTECTED] Signed-off

[PATCH][17] Add guest interruption injection support.

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Tue, 29 Jan 2008 14:42:03 +0800 Subject: [PATCH] kvm/ia64: Add guest interruption injection support. process.c mainly handle interruption injection, and some faults handling. Signed-off-by: Anthony Xu [EMAIL PROTECTED] Signed-off-by: Xiantao Zhang

[PATCH] [01]Appoint kvm/ia64 maintainers

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Thu, 31 Jan 2008 12:03:39 +0800 Subject: [PATCH] Appoint kvm/ia64 Maintainers Signed-off-by Anthony Xu [EMAIL PROTECTED] Signed-off-by Xiantao Zhang [EMAIL PROTECTED] --- MAINTAINERS |9 + 1 files changed, 9 insertions(+), 0 deletions

[PATCH][02] Change srlz.d to srlz.i for ia64_set_psr

2008-01-31 Thread Zhang, Xiantao
From: Xiantao Zhang [EMAIL PROTECTED] Date: Thu, 31 Jan 2008 17:46:09 +0800 Subject: [PATCH] IA64: ia64_set_psr may need srlz.i sometimes. Once psr.ic changes by ia64_set_psr, srlz.i is needed here. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- arch/ia64/kernel/efi.c |1 -

[PATCH][20]Update IA64 Kconfig and Makefile to include kvm build.

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Tue, 29 Jan 2008 15:40:27 +0800 Subject: [PATCH] kvm/ia64: Update IA64 Kconfig and Makefile to include kvm build. Update IA64 Kconfig and Makefile to include kvm build. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] --- arch/ia64/Kconfig |6

[PATCH][04]Add API for allocating TR resouce.

2008-01-31 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Thu, 31 Jan 2008 17:10:52 +0800 Subject: [PATCH] Add API for allocating TR resouce. Dynamic TR resouce should be managed in an uniform way. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Anthony Xu[EMAIL PROTECTED] --- arch/ia64/kernel

RE: [kvm-ia64-devel] [PATCH][02] Change srlz.d to srlz.i foria64_set_psr

2008-01-31 Thread Zhang, Xiantao
Akio Takebe wrote: Hi, Xiantao void __init diff --git a/include/asm-ia64/processor.h b/include/asm-ia64/processor.h index be3b0ae..038642f 100644 --- a/include/asm-ia64/processor.h +++ b/include/asm-ia64/processor.h @@ -472,7 +472,7 @@ ia64_set_psr (__u64 psr) { ia64_stop();

RE: [kvm-ia64-devel] [PATCH][10] Add TLB virtulization support.

2008-01-31 Thread Zhang, Xiantao
Akio Takebe wrote: Hi, Xiantao +void thash_vhpt_insert(VCPU *v, u64 pte, u64 itir, u64 va, int type) +{ + u64 phy_pte, psr; +ia64_rr mrr; + +mrr.val = ia64_get_rr(va); +phy_pte = translate_phy_pte(pte, itir, va); + +if (itir_ps(itir) = mrr.ps) { +

[Qemu-devel] RE: [kvm-devel] [PATCH] Making SLIRP code more 64-bit clean

2008-01-31 Thread Zhang, Xiantao
Unfortunately, it can's apply on tip. Could you attach the diff ? Thanks Xiantao

RE: [kvm-ia64-devel] [Qemu-devel] Re: [kvm-devel] [PATCH] MakingSLIRP code more 64-bit clean

2008-01-31 Thread Zhang, Xiantao
Blue Swirl wrote: On 1/30/08, Scott Pakin [EMAIL PROTECTED] wrote: Zhang, Xiantao wrote: Scott Pakin wrote: The attached patch corrects a bug in qemu/slirp/tcp_var.h that defines the seg_next field in struct tcpcb to be 32 bits wide regardless of 32/64-bitness. seg_next is assigned

[Qemu-devel] RE: [kvm-ia64-devel] [kvm-devel] [PATCH] Making SLIRP code more64-bit clean

2008-01-31 Thread Zhang, Xiantao
Scott Pakin wrote: Zhang, Xiantao wrote: Scott Pakin wrote: The attached patch corrects a bug in qemu/slirp/tcp_var.h that defines the seg_next field in struct tcpcb to be 32 bits wide regardless of 32/64-bitness. seg_next is assigned a pointer value in qemu/slirp/tcp_subr.c, then cast back

[kvm-devel] [PATCH] Converting mmio to port io in userspace for IA64

2008-01-30 Thread Zhang, Xiantao
From: Zhang Xiantao [EMAIL PROTECTED] Date: Thu, 31 Jan 2008 09:06:21 +0800 Subject: [PATCH] kvm: qemu: Covert the mmio address space to port io in userspace. IA64 also have no port io, but chipset is responsible for converting some mmio to port io for keeping compatibility with legacy deviceS

Re: [kvm-devel] [PATCH] Converting mmio to port io in userspace for IA64

2008-01-30 Thread Zhang, Xiantao
Avi Kivity wrote: Zhang, Xiantao wrote: +#define TO_LEGACY_IO(addr) (((addr0x3ff) 12 2)|((addr) 0x3)) Please change to a function. Other than that, patch looks good. Thanks ! Attached. :) Xiantao From: Zhang Xiantao [EMAIL PROTECTED] Date: Thu, 31 Jan 2008 15:35:10 +0800

Re: [kvm-devel] [kvm-ppc-devel] [PATCH] Clean up KVM/QEMU interaction

2008-01-29 Thread Zhang, Xiantao
Anthony Liguori wrote: This patch attempts to clean up the interactions between KVM and QEMU. Sorry for such a big patch, but I don't think there's a better way to approach this such that it's still bisect friendly. I think this is most of what's needed to get basic KVM support into

Re: [kvm-devel] [PATCH] Making SLIRP code more 64-bit clean

2008-01-29 Thread Zhang, Xiantao
Scott Pakin wrote: The attached patch corrects a bug in qemu/slirp/tcp_var.h that defines the seg_next field in struct tcpcb to be 32 bits wide regardless of 32/64-bitness. seg_next is assigned a pointer value in qemu/slirp/tcp_subr.c, then cast back to a pointer in qemu/slirp/tcp_input.c

[kvm-devel] kvm-ia64-devel created for discussing ia64-specific topics!!

2008-01-27 Thread Zhang, Xiantao
Hi, guys We have created kvm-ia64-devel mailing list for discussing ia64-specific topics. Cheers!! If you have topics which only belongs to ia64, please use this list! But if you have any cross-arch questions or topics, please cc kvm-devel for involving more persons in. We will open the

Re: [kvm-devel] [kvm-ia64-devel] kvm-ia64-devel created fordiscussing ia64-specifictopics!!

2008-01-27 Thread Zhang, Xiantao
Sure, Changed, Thanks:) Xiantao Akio Takebe wrote: Hi, Xiantao and Anthony Good news! Could you update lists page of wiki? http://kvm.qumranet.com/kvmwiki/Lists%2C_IRC Best Regards, Akio Takebe Hi, guys We have created kvm-ia64-devel mailing list for discussing ia64-specific

Re: [kvm-devel] ia64 kernel patches?

2008-01-25 Thread Zhang, Xiantao
Jes Sorensen wrote: Zhang, Xiantao wrote: Hi, Jes Yes, Anthony and I are working with kernel-ia64 and kvm community to push the patches. Since kernel should export some interface for kvm use, we have to wait the response from kernel-ia64. But anyway, It should be picked up in near future

Re: [kvm-devel] ia64 kernel patches?

2008-01-25 Thread Zhang, Xiantao
Jes Sorensen wrote: Zhang, Xiantao wrote: Jes Sorensen wrote: Hi Xiantao, If you could put up the patches somewhere, I could help you clean them up and push them. I would prefer not to wait until they appear in Linus' tree if possible. Hi, Jes You don't need to wait so long. We

RE: [kvm-devel] ia64 kernel patches?

2008-01-25 Thread Zhang, Xiantao
Jes Sorensen wrote: Zhang, Xiantao wrote: Jes Sorensen wrote: Hi Xiantao, If you could put up the patches somewhere, I could help you clean them up and push them. I would prefer not to wait until they appear in Linus' tree if possible. Hi, Jes You don't need to wait so long. We

<    1   2   3   4   5   6   7   8   >