WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH][VTD] fix interrupt remapping to handle SMI RTE's

To: "Kay, Allen M" <allen.m.kay@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH][VTD] fix interrupt remapping to handle SMI RTE's with uninitialized reserved fields
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Thu, 13 Nov 2008 12:29:42 +0900
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Han, Weidong" <weidong.han@xxxxxxxxx>, "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
Delivery-date: Wed, 12 Nov 2008 19:34:08 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <57C9024A16AD2D4C97DC78E552063EA35C22802D@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <57C9024A16AD2D4C97DC78E552063EA35C22802D@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
On Fri, Nov 07, 2008 at 11:23:51PM -0800, Kay, Allen M wrote:
> Some BIOS does not zero out reserve fields in IOAPIC RTE's.  clear_IO_APIC() 
> zeroes out all RTE's except for RTE with MSI delivery type.  This is a 
> problem when the host OS converts SMI delivery type to some other type but 
> leaving the reserved field uninitialized.  This can cause interrupt remapping 
> table out of bound error if "format" field is 1 and the uninitialized "index" 
> field has a value that that is larger than the maximum index of interrupt 
> remapping table.
> 
> Signed-off-by: Allen Kay <allen.m.kay@xxxxxxxxx>

Hi, this patch causes a compilation error on ia64 as follows.
And dest_SMI seems x86 specific.

Could you take care of it?

ia64-linux-gnu-gcc -O2 -fomit-frame-pointer -fno-strict-aliasing -std=gnu99 
-Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement 
-DNDEBUG -nostdinc -fno-builtin -fno-common -mconstant-gp -O2 
-fomit-frame-pointer -D__KERNEL__ -iwithprefix include 
-I/mnt/eos-fs/home/yamahata/xen-ia64-build/2008/11/13-04_15_02/ia64_staging/xen-unstable.hg-default/xen/include
 -I/xen-unstable.hg-default/xen/include/asm-ia64 
-I/xen-unstable.hg-default/xen/include/asm-ia64/linux 
-I/xen-unstable.hg-default/xen/include/asm-ia64/linux-xen 
-I/xen-unstable.hg-default/xen/include/asm-ia64/linux-null 
-I/xen-unstable.hg-default/xen/arch/ia64/linux 
-I/xen-unstable.hg-default/xen/arch/ia64/linux-xen -DIA64 -DXEN -DLINUX_2_6 
-ffixed-r13 -mfixed-range=f2-f5,f12-f127,b2-b5 -g -DCONFIG_XEN_IA64_EXPOSE_P2M 
-DCONFIG_XEN_IA64_PERVCPU_VHPT -DCONFIG_XEN_IA64_TLB_TRACK 
-DCONFIG_XEN_IA64_TLBFLUSH_CLOCK -DVHPT_ENABLED=1 -g -D__XEN__ -c intremap.c -o 
intremap.o
intremap.c: In function io_apic_read_remap_rt:
intremap.c:210: error: dest_SMI undeclared (first use in this function)
intremap.c:210: error: (Each undeclared identifier is reported only once
intremap.c:210: error: for each function it appears in.)
intremap.c: In function io_apic_write_remap_rte:
intremap.c:256: error: dest_SMI undeclared (first use in this function)
-- 
yamahata

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>