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

"Zhang, Xiantao" <[email protected]>
Newsgroups org.kernel.vger.kvm-ia64,org.kernel.vger.kvm
Message-ID <42DFA526FC41B1429CE7279EF83C6BDC01ABCDA4@pdsmsx415.ccr.corp.intel.com>
Avi Kivity wrote:
> Zhang, Xiantao wrote:
>> 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.
>> 
> 
> 
>> +/* 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 set the bit in both. The guest will ignore
>> +	 * writes to the unused one.
>> +	 */
>> +	kvm_ioapic_set_irq(kvm->arch.vioapic, irq, level); +#ifdef X86
>> +	kvm_pic_set_irq(pic_irqchip(kvm), irq, level);
>> +#endif
>> +}
>> +
>> 
> 
> This needs to be CONFIG_X86, not X86.  As is, Windows doesn't even
> boot.  Fixing it causes compile errors for missing declarations and
> pic_irqchip().
Hi, Avi 
	I have fixed it on my ia32 machine but seems forget to commit
it.Okay, I will retest it before sending out the new one.
Thanks
Xiantao
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.