From e69835fc40b5e00c0996ce3a85d8287eea57d162 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Wed, 1 Oct 2025 16:35:10 +0200 Subject: executor: sys/linux: implement SYZOS_API_SET_IRQ_HANDLER The new API call allows to initialize the handler with one of the three possible values: - NULL (should cause a page fault) - dummy_null_handler (should call iret) - uexit_irq_handler (should perform guest_uexit(UEXIT_IRQ)) Also add a test for uexit_irq_handler() --- executor/common_kvm_amd64.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'executor/common_kvm_amd64.h') diff --git a/executor/common_kvm_amd64.h b/executor/common_kvm_amd64.h index ce778792d..3e5200137 100644 --- a/executor/common_kvm_amd64.h +++ b/executor/common_kvm_amd64.h @@ -252,18 +252,6 @@ struct kvm_syz_vm { #endif #if SYZ_EXECUTOR || __NR_syz_kvm_add_vcpu -// See https://wiki.osdev.org/Interrupt_Descriptor_Table#Gate_Descriptor_2. -struct idt_entry_64 { - uint16 offset_low; - uint16 selector; - // Interrupt Stack Table offset in bits 0..2 - uint8 ist; - // Gate Type, P and DPL. - uint8 type_attr; - uint16 offset_mid; - uint32 offset_high; - uint32 reserved; -} __attribute__((packed)); // Post-processing code in pkg/csource/csource.go is very picky and won't let us directly pass // fail() to DEFINE_GUEST_FN_TO_GPA_FN. -- cgit mrf-deployment