From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCH v5 2/6] KVM: Introduce struct rtc_status Date: Thu, 21 Mar 2013 14:08:30 +0200 Message-ID: <20130321120830.GR3889@redhat.com> References: <1363862964-25148-1-git-send-email-yang.z.zhang@intel.com> <1363862964-25148-3-git-send-email-yang.z.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, mtosatti@redhat.com, xiantao.zhang@intel.com To: Yang Zhang Return-path: Received: from mx1.redhat.com ([209.132.183.28]:40354 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932278Ab3CUMIc (ORCPT ); Thu, 21 Mar 2013 08:08:32 -0400 Content-Disposition: inline In-Reply-To: <1363862964-25148-3-git-send-email-yang.z.zhang@intel.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Mar 21, 2013 at 06:49:20PM +0800, Yang Zhang wrote: > From: Yang Zhang > > Signed-off-by: Yang Zhang > --- > virt/kvm/ioapic.h | 8 ++++++++ > 1 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/virt/kvm/ioapic.h b/virt/kvm/ioapic.h > index 2fc61a5..6e5c88f 100644 > --- a/virt/kvm/ioapic.h > +++ b/virt/kvm/ioapic.h > @@ -34,6 +34,11 @@ struct kvm_vcpu; > #define IOAPIC_INIT 0x5 > #define IOAPIC_EXTINT 0x7 > > +struct rtc_status { > + int pending_eoi; > + DECLARE_BITMAP(dest_map, KVM_MAX_VCPUS); > +}; > + > struct kvm_ioapic { > u64 base_address; > u32 ioregsel; > @@ -47,6 +52,9 @@ struct kvm_ioapic { > void (*ack_notifier)(void *opaque, int irq); > spinlock_t lock; > DECLARE_BITMAP(handled_vectors, 256); > +#ifdef CONFIG_X86 > + struct rtc_status rtc_status; > +#endif IA64 KVM is almost dead, but we still add CONFIG_X86 everywhere in these patches. Lets drop all CONFIG_X86 throughout the patches and instead leave only one: #ifdef CONFIG_X86 #define RTC_GSI 8 else #define RTC_GSI 255 #endif Then use RTC_GSI instead of 8 everywhere and the code will be effectively disabled on IA64. > }; > > #ifdef DEBUG > -- > 1.7.1 -- Gleb.