1 #include "kvm/interrupt.h"
7 void interrupt_table__copy(struct interrupt_table
*itable
, void *dst
, unsigned int size
)
9 if (size
< sizeof(itable
->entries
))
10 die("An attempt to overwrite host memory");
12 memcpy(dst
, itable
->entries
, sizeof(itable
->entries
));
15 void interrupt_table__setup(struct interrupt_table
*itable
, struct real_intr_desc
*entry
)
19 for (i
= 0; i
< REAL_INTR_VECTORS
; i
++)
20 itable
->entries
[i
] = *entry
;
23 void interrupt_table__set(struct interrupt_table
*itable
, struct real_intr_desc
*entry
, unsigned int num
)
25 if (num
< REAL_INTR_VECTORS
)
26 itable
->entries
[num
] = *entry
;