mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
intel_iommu: add SID validation for IR
This patch enables SID validation. Invalid interrupts will be dropped. Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
28589311b3
commit
ede9c94acf
2 changed files with 75 additions and 11 deletions
|
@ -102,6 +102,23 @@ struct VTDIOTLBEntry {
|
|||
bool write_flags;
|
||||
};
|
||||
|
||||
/* VT-d Source-ID Qualifier types */
|
||||
enum {
|
||||
VTD_SQ_FULL = 0x00, /* Full SID verification */
|
||||
VTD_SQ_IGN_3 = 0x01, /* Ignore bit 3 */
|
||||
VTD_SQ_IGN_2_3 = 0x02, /* Ignore bits 2 & 3 */
|
||||
VTD_SQ_IGN_1_3 = 0x03, /* Ignore bits 1-3 */
|
||||
VTD_SQ_MAX,
|
||||
};
|
||||
|
||||
/* VT-d Source Validation Types */
|
||||
enum {
|
||||
VTD_SVT_NONE = 0x00, /* No validation */
|
||||
VTD_SVT_ALL = 0x01, /* Do full validation */
|
||||
VTD_SVT_BUS = 0x02, /* Validate bus range */
|
||||
VTD_SVT_MAX,
|
||||
};
|
||||
|
||||
/* Interrupt Remapping Table Entry Definition */
|
||||
union VTD_IRTE {
|
||||
struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue