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
Subject: Re: [PATCH] Eliminate the difference of ioapic andiosapic
Date: Fri, 30 Nov 2007 13:57:03 +0200 [thread overview]
Message-ID: <474FFA8F.7040403@qumranet.com> (raw)
In-Reply-To: <42DFA526FC41B1429CE7279EF83C6BDCA3981F-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
Zhang, Xiantao wrote:
> Avi Kivity wrote:
>
>> Zhang, Xiantao wrote:
>>
>>> Avi Kivity wrote:
>>>
>>>
>>>> Zhang, Xiantao wrote:
>>>>
>>>>
>>>>> From: Zhang Xiantao <xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>>>>> Date: Thu, 29 Nov 2007 18:17:13 +0800
>>>>> Subject: [PATCH] Clearing up the difference of ioapic and iosapic
>>>>> Since IA64 uses iosapic, we want to merget it with current ioapic
>>>>> code. This patch should make x86 and IA64 happy.
>>>>> Signed-off-by: Zhang Xiantao <xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> ---
>>>>> drivers/kvm/ioapic.c | 26 +++++++++++++-------------
>>>>> drivers/kvm/irq.h | 5 +++--
>>>>> drivers/kvm/lapic.c | 23 ++++++++++++++++++-----
>>>>> 3 files changed, 34 insertions(+), 20 deletions(-)
>>>>>
>>>>> diff --git a/drivers/kvm/ioapic.c b/drivers/kvm/ioapic.c
>>>>> index cf1d50b..79c48ec 100644
>>>>> --- a/drivers/kvm/ioapic.c
>>>>> +++ b/drivers/kvm/ioapic.c
>>>>> @@ -36,11 +36,8 @@
>>>>> #include <asm/page.h>
>>>>> #include <asm/current.h>
>>>>> -#include <asm/apicdef.h>
>>>>> -#include <asm/io_apic.h>
>>>>>
>>>>>
>>>>>
>>>> This will break compilation under certain .configs.
>>>>
>>>> Other than that, the patch is good.
>>>>
>>>>
>>> Can we use the compile option CONFIG_X86 to handle it ? Xiantao
>>>
>>>
>> Sure.
>>
>> But where does ia64 get its ioapic defines then? Things like
>> dest_Fixed, I grepped for them in include/asm-ia64 but didn't find
>> them.
>>
>> Maybe an include/asm-ia64/io_apic.h can provide them?
>>
>
> In IA64, it uses macros to define them for iosapic side. Seems only
> io_apic.h should be included for dest_Fixed reference, and apicdef is
> not necessary here.
> Now, I defined it in IA64-specific head file, (e.g.) ia64.h.
> Here, I don't think we can define io_apic.h under asm-ia64, since the
> similar definition exists in iosapic.h. Maybe we can removed the
> include here, and just define an common macro such kvm_dest_Fixed and
> kvm_dest_Low_Prio in irq.h to solve it, and make kvm not dependent of
> kernel's head files here. What's your opinion?
>
Hm... I guess we can have a drivers/kvm/ioapic.h which will contain the
definitions for io[s]apic, and drop the dependency on asm-x86/io_apic.h.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
next prev parent reply other threads:[~2007-11-30 11:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 10:25 [PATCH] Eliminate the difference of ioapic and iosapic Zhang, Xiantao
[not found] ` <42DFA526FC41B1429CE7279EF83C6BDCA3951B-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-11-30 7:45 ` Avi Kivity
[not found] ` <474FBFAB.7020407-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-11-30 8:23 ` [PATCH] Eliminate the difference of ioapic andiosapic Zhang, Xiantao
[not found] ` <42DFA526FC41B1429CE7279EF83C6BDCA397B3-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-11-30 8:32 ` Avi Kivity
[not found] ` <474FCA8C.2090809-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-11-30 10:22 ` Zhang, Xiantao
[not found] ` <42DFA526FC41B1429CE7279EF83C6BDCA3981F-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-11-30 11:57 ` Avi Kivity [this message]
[not found] ` <474FFA8F.7040403-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-11-30 11:59 ` Zhang, Xiantao
2007-12-02 12:29 ` Zhang, Xiantao
[not found] ` <42DFA526FC41B1429CE7279EF83C6BDCA398ED-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-12-02 12:43 ` Avi Kivity
[not found] ` <4752A859.2040909-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-12-02 14:57 ` Zhang, Xiantao
[not found] ` <42DFA526FC41B1429CE7279EF83C6BDCA3991B-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-12-02 20:35 ` Avi Kivity
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=474FFA8F.7040403@qumranet.com \
--to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.