git: 42e66606ca50 - stable/15 - amd64: do not switch back and restore UEFI IDT in wrmsr_early_safe_end()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 04 Jun 2026 14:30:01 UTC
The branch stable/15 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=42e66606ca505b39c63c43a0860152f0e74415d2
commit 42e66606ca505b39c63c43a0860152f0e74415d2
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-05-29 07:32:41 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-06-04 14:29:19 +0000
amd64: do not switch back and restore UEFI IDT in wrmsr_early_safe_end()
(cherry picked from commit 606d3cb1be5fd594c1f51addd063e7c13e16bdbc)
---
sys/amd64/amd64/machdep.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 7b652d241250..64bffe2777ce 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -1829,7 +1829,6 @@ clear_pcb_flags(struct pcb *pcb, const u_int flags)
}
extern const char wrmsr_early_safe_gp_handler[];
-static struct region_descriptor wrmsr_early_safe_orig_efi_idt;
void
wrmsr_early_safe_start(void)
@@ -1838,7 +1837,6 @@ wrmsr_early_safe_start(void)
struct gate_descriptor *gpf_descr;
int i;
- sidt(&wrmsr_early_safe_orig_efi_idt);
efi_idt.rd_limit = 32 * sizeof(idt0[0]);
efi_idt.rd_base = (uintptr_t)idt0;
lidt(&efi_idt);
@@ -1859,12 +1857,6 @@ wrmsr_early_safe_start(void)
void
wrmsr_early_safe_end(void)
{
- int i;
-
- lidt(&wrmsr_early_safe_orig_efi_idt);
-
- for (i = 0; i < 32; i++)
- memset_early(&idt0[i], 0, sizeof(idt0[0]));
}
int