Skip to content
This repository was archived by the owner on Jan 28, 2023. It is now read-only.

Commit 5636f62

Browse files
committed
Fixed padding in vcpu_state_t
Signed-off-by: Alexandro Sanchez Bach <asanchez@kryptoslogic.com>
1 parent 5ee10eb commit 5636f62

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

docs/api.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -497,20 +497,6 @@ TODO: Describe
497497
* Since: API v1
498498
* Parameter: `struct vcpu_state_t regs`, where
499499
```
500-
union interruptibility_state_t {
501-
uint32 raw;
502-
struct {
503-
uint32 sti_blocking : 1;
504-
uint32 movss_blocking : 1;
505-
uint32 smi_blocking : 1;
506-
uint32 nmi_blocking : 1;
507-
uint32 reserved : 28;
508-
};
509-
uint64_t pad;
510-
};
511-
512-
typedef union interruptibility_state_t interruptibility_state_t;
513-
514500
struct segment_desc_t {
515501
uint16 selector;
516502
uint16 _dummy;
@@ -652,7 +638,7 @@ TODO: Describe
652638
653639
uint32 _activity_state;
654640
uint32 pad;
655-
interruptibility_state_t _interruptibility_state;
641+
uint64 pad2;
656642
};
657643
```
658644
* (Input) `regs`:

include/vcpu_state.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ struct vcpu_state_t {
173173

174174
uint32_t _activity_state;
175175
uint32_t pad;
176+
uint64_t pad2;
176177
} PACKED;
177178

178179
void dump(void);

0 commit comments

Comments
 (0)