diff options
| author | Alexander Potapenko <glider@google.com> | 2025-09-26 12:32:10 +0200 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2025-10-17 06:51:20 +0000 |
| commit | bc704f36a2d3ef35b1857bc077e58e98c9af4f94 (patch) | |
| tree | 3ddc8dadfe6bc33849e816a73e1e4a6653219318 /executor | |
| parent | fe2df35c1db3ce6dece1feb776f6a7c22e89be22 (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')
| -rw-r--r-- | executor/common_kvm_amd64.h | 4 |
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) |
