aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_kvm_amd64.h
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2025-09-26 12:32:10 +0200
committerAlexander Potapenko <glider@google.com>2025-10-17 06:51:20 +0000
commitbc704f36a2d3ef35b1857bc077e58e98c9af4f94 (patch)
tree3ddc8dadfe6bc33849e816a73e1e4a6653219318 /executor/common_kvm_amd64.h
parentfe2df35c1db3ce6dece1feb776f6a7c22e89be22 (diff)
executor: fix the definition of struct tss64
Per https://wiki.osdev.org/Task_State_Segment#Long_Mode, io_bitmap and reserved3 should be 16-bit.
Diffstat (limited to 'executor/common_kvm_amd64.h')
-rw-r--r--executor/common_kvm_amd64.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/executor/common_kvm_amd64.h b/executor/common_kvm_amd64.h
index 0cc21753c..c9a68d249 100644
--- a/executor/common_kvm_amd64.h
+++ b/executor/common_kvm_amd64.h
@@ -80,8 +80,8 @@ struct tss64 {
uint64 reserved1;
uint64 ist[7];
uint64 reserved2;
- uint32 reserved3;
- uint32 io_bitmap;
+ uint16 reserved3;
+ uint16 io_bitmap;
} __attribute__((packed));
static void fill_segment_descriptor(uint64* dt, uint64* lt, struct kvm_segment* seg)