public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: "Zhang, Xiantao" <xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	virtualization
	<virtualization-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
Subject: Re: [RFC] KVM Source layout Proposal to accommodate new CPU architecture
Date: Fri, 28 Sep 2007 16:45:38 +0200	[thread overview]
Message-ID: <46FD1392.1080905@qumranet.com> (raw)
In-Reply-To: <42DFA526FC41B1429CE7279EF83C6BDC753E73-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 3287 bytes --]

Zhang, Xiantao wrote:
> Hi Avi,
> 	Sound good! But what can we do before the merge? You know, we have to spend much effort maintaining our patches with sync with upstream tree. Do you have an interim solution or proposal for merging IA64 code?  Thanks. 
> Xiantao 
>   

The merge is due in a few weeks. If that is too far, we can push the x86
parts to arch/i386 and do makefile magic so that x86-64 sees it too.


> -----Original Message-----
> From: Avi Kivity [mailto:avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org] 
> Sent: 2007年9月27日 17:19
> To: Zhang, Xiantao
> Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org; virtualization
> Subject: Re: [RFC] KVM Source layout Proposal to accommodate new CPU architecture
>
> Zhang, Xiantao wrote:
>   
>> Hi Folks,
>> 	We are working on enabling KVM support on IA64 platform, and now
>> Linux, Windows guests get stable run and achieve reasonable performance
>> on KVM with Open GFW. But you know, the current KVM only considers x86
>> platform, and is short of cross-architecture framework. Currently, we
>> have a proposal for KVM source layout to accommodate new CPU
>> architectures. Attached foil describes the detail. With our proposal, we
>> can boot x86 guests based on commit
>> 2e278972a11eb14f031dea242a9ed118adfa0932, also didn't see regressions.
>> For IA64 side, we are rebasing our code to this framework. 
>> Main changes to current source:
>> 1. Add subdirectories, such as x86 and ia64 to hold arch-specific code.
>> 2. Split kvm_main.c to two parts. One is still called kvm_main.c, just
>> contains KVM common interfaces with user space, and basic KVM
>> infrastructure. The other one is named as kvm_arch.c under sub-directory
>> (eg. X86, ia64 etc), which includes arch-specific code to supplement the
>> functionality of kvm_main.c
>> 3. Add an "include" directory in drivers/kvm. Due to possibly complex
>> code logic in KVM source, maybe many header files need to maintain for
>> some architectures. If we put them under top-level include/asm-arch
>> directory, it may introduce much more maintain effort. So, we put it
>> under "drivers/kvm", and let it be effective when kernel configuration
>> time.
>> BTW, Userspace code changes are not involved in this thread. 
>> Considering the readability, we didn't attach the diff file in the mail,
>> due to big changes to kvm source structure, and only post the tarball
>> including whole directory "drivers/kvm" instead. For comparison, I
>> attached kvm_main.diff as well. 
>>
>> Any comments are appreciated from you! Hope to see IA64 support on KVM
>> earlier!
>>   
>>     
>
> The whole drivers/kvm/ thing was just a trick to get merged quickly.  I
> think the new layout should be something like
>
>   virt/kvm/, include/linux/kvm*.h -> common code
>   virt/lguest/ -> the other hypervisor
>   virt/virtio/ -> shared I/O infrastructure
>   virt/ -> the CONFIG_VIRTIALIZATION menu
>   arch/x86/kvm/, include/asm-x86/ -> x86 specific code
>   arch/ia64/kvm/, include/asm-ia64/ -> ia64 specific code
>
> etc.
>
> Of course, this depends on the x86 merge which is scheduled for early
> 2.6.24.
>
>   


-- 
Any sufficiently difficult bug is indistinguishable from a feature.



[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

  parent reply	other threads:[~2007-09-28 14:45 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-26  8:33 [RFC] KVM Source layout Proposal to accommodate new CPU architecture Zhang, Xiantao
     [not found] ` <42DFA526FC41B1429CE7279EF83C6BDC753A4E-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-09-26  8:44   ` Laurent Vivier
     [not found]     ` <46FA1BDA.2060003-6ktuUTfB/bM@public.gmane.org>
2007-09-26  9:38       ` Zhang, Xiantao
2007-09-27  9:18   ` Avi Kivity
     [not found]     ` <46FB7566.9030504-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-09-28  2:16       ` Zhang, Xiantao
     [not found]         ` <42DFA526FC41B1429CE7279EF83C6BDC753E73-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-09-28 14:45           ` Avi Kivity [this message]
     [not found]             ` <46FD1392.1080905-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-09-28 15:28               ` Zhang, Xiantao
     [not found]                 ` <42DFA526FC41B1429CE7279EF83C6BDC754031-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-09-28 17:03                   ` Avi Kivity
     [not found]                     ` <46FD33F2.9090506-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-09-29  1:47                       ` Zhang, Xiantao
     [not found]                         ` <42DFA526FC41B1429CE7279EF83C6BDC754076-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-09-30 10:52                           ` Avi Kivity
     [not found]                             ` <46FF7FF6.6090103-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-09-30 13:53                               ` Zhang, Xiantao
     [not found]                                 ` <42DFA526FC41B1429CE7279EF83C6BDC75421C-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-09-30 13:56                                   ` Avi Kivity
2007-10-02  1:19                                     ` Hollis Blanchard
2007-10-02  4:11                                       ` Rusty Russell
     [not found]                                         ` <1191298279.6979.50.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-10-02  6:01                                           ` Hollis Blanchard
2007-10-02  6:29                                             ` Rusty Russell
     [not found]                                               ` <1191306576.6979.91.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-10-02 11:43                                                 ` Carsten Otte
     [not found]                                     ` <46FFAB00.4050103-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-09-30 15:01                                       ` Zhang, Xiantao
2007-10-08  2:36                                       ` Zhang, Xiantao
     [not found]                                         ` <42DFA526FC41B1429CE7279EF83C6BDC7AE225-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-10-08  4:04                                           ` Hollis Blanchard
2007-10-08  4:16                                             ` [RFC] KVM Source layout Proposal to accommodate newCPU architecture Zhang, Xiantao
     [not found]                                               ` <42DFA526FC41B1429CE7279EF83C6BDC7AE2A8-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-10-08  9:57                                                 ` Avi Kivity
     [not found]                                                   ` <4709FEF1.6010006-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-09  1:10                                                     ` Zhang, Xiantao
2007-09-28  8:20       ` [RFC] KVM Source layout Proposal to accommodate new CPU architecture Carsten Otte
     [not found]         ` <46FCB954.50005-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
2007-09-30  2:26           ` Zhang, Xiantao
2007-09-29 13:06       ` Rusty Russell
     [not found]         ` <1191071211.26950.28.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-09-29 14:25           ` Sam Ravnborg
2007-09-30  2:26           ` [RFC] KVM Source layout Proposal to accommodatenew " Zhang, Xiantao
     [not found] <FD80ED6F62DC5E41910477505FA01BDFA62D00@pdsmsx415.ccr.corp.intel.com>
     [not found] ` <FD80ED6F62DC5E41910477505FA01BDFA62D00-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-09-26  8:58   ` [RFC] KVM Source layout Proposal to accommodate new " Zhang, Xiantao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46FD1392.1080905@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=virtualization-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox