xen-devel
[Xen-devel] Re: [PATCH 18 of 38] x86: unify pci iommu setup and allow sw
On Wed, 2008-11-26 at 11:53 +0900, FUJITA Tomonori wrote:
>
> > + BUG_ON(max_slots > 1UL << (BITS_PER_LONG - IO_TLB_SHIFT));
>
> How can this BUG_ON happen? Using u64 for the mask is fine though.
It covers the cases where the previous code would have overflowed. It
can't happen right now because although mask is 64 bits the value
assigned to it is currently sizeof(unsigned long). If someone changes
the type of that field then we would start seeing unexpected values.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 15 of 38] x86: unstatic ioapic entry funcs, (continued)
- [Xen-devel] [PATCH 15 of 38] x86: unstatic ioapic entry funcs, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 16 of 38] x86: include linux/init.h in asm/numa_64.h, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 17 of 38] x86: add swiotlb allocation functions, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 19 of 38] x86: add arch specific version of the swiotlb virt<->bus<->virt functions, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 21 of 38] xen dom0: Initialize xenbus for dom0, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 18 of 38] x86: unify pci iommu setup and allow swiotlb to compile for 32 bit, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 20 of 38] xen dom0: Make hvc_xen console work for dom0, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 23 of 38] xen-dom0: only selectively disable cpu features, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 22 of 38] xen dom0: Set up basic IO permissions for dom0, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 26 of 38] xen: forcibly disable PAT support, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 24 of 38] xen dom0: Add support for the platform_ops hypercall, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 25 of 38] xen mtrr: Add mtrr_ops support for Xen mtrr, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 27 of 38] xen/dom0: use _PAGE_IOMAP in ioremap to do machine mappings, Jeremy Fitzhardinge
|
|
|