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: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH][VTD] fix interrupt remapping to handle SMI RTE's with uninitialized reserved fields
From: "Kay, Allen M" <allen.m.kay@xxxxxxxxx>
Date: Thu, 13 Nov 2008 11:07:42 -0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>, "Han, Weidong" <weidong.han@xxxxxxxxx>, "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
Delivery-date: Thu, 13 Nov 2008 11:08:11 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20081113032942.GC21311%yamahata@xxxxxxxxxxxxx>
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> <20081113032942.GC21311%yamahata@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclFQBSFO+pT4+HGTL6/PTqzTB8omQAgjrQQ
Thread-topic: [Xen-devel] [PATCH][VTD] fix interrupt remapping to handle SMI RTE's with uninitialized reserved fields
This patch should fix IA-64 build break reported by Isaku - by adding 
"#defined(__i386__) || defined(__x86_64__)" around SMI references in intremap.c.

Signed-off-by: Allen Kay <allen.m.kay@xxxxxxxxx>


>-----Original Message-----
>From: Isaku Yamahata [mailto:yamahata@xxxxxxxxxxxxx] 
>Sent: Wednesday, November 12, 2008 7:30 PM
>To: Kay, Allen M
>Cc: xen-devel@xxxxxxxxxxxxxxxxxxx; Han, Weidong; Cui, Dexuan
>Subject: Re: [Xen-devel] [PATCH][VTD] fix interrupt remapping 
>to handle SMI RTE's with uninitialized reserved fields
>
>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
>

Attachment: vtd_buildfix.patch
Description: vtd_buildfix.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>