diff options
author | Fenghua Yu <fenghua.yu@intel.com> | 2007-11-21 15:07:14 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-01 15:04:21 -0800 |
commit | 093f87d279669c74e84530e925e4735c9aae8898 (patch) | |
tree | b388fed2eaedde4ad103d706666c84e5799dbe04 /drivers/crypto/padlock.h | |
parent | 652c538eb5bc3fa04bc5f27db9014f0168aefe97 (diff) |
PCI: More Sanity checks for DMAR
Add and changes a few sanity checks in dmar.c.
1. The haw field in ACPI DMAR table in VT-d spec doesn't describe the
range of haw. But since DMA page size is 4KB in DMA remapping, haw
should be at least 4KB. The current VT-d code in dmar.c returns failure
when haw==0. This sanity check is not accurate and execution can pass
when haw is less than one page size 4KB. This patch changes the haw
sanity check to validate if haw is less than 4KB.
2. Add dmar_rmrr_units verification.
3. Add parse_dmar_table() verification.
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Acked-by: mark gross <mgross@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/crypto/padlock.h')
0 files changed, 0 insertions, 0 deletions