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

Commit

Permalink
Fixed padding in vcpu_state_t
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandro Sanchez Bach <asanchez@kryptoslogic.com>
  • Loading branch information
AlexAltea committed Nov 20, 2018
1 parent ba7cd13 commit ad2dd49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
16 changes: 1 addition & 15 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -497,20 +497,6 @@ TODO: Describe
* Since: API v1
* Parameter: `struct vcpu_state_t regs`, where
```
union interruptibility_state_t {
uint32 raw;
struct {
uint32 sti_blocking : 1;
uint32 movss_blocking : 1;
uint32 smi_blocking : 1;
uint32 nmi_blocking : 1;
uint32 reserved : 28;
};
uint64_t pad;
};
typedef union interruptibility_state_t interruptibility_state_t;
struct segment_desc_t {
uint16 selector;
uint16 _dummy;
Expand Down Expand Up @@ -652,7 +638,7 @@ TODO: Describe
uint32 _activity_state;
uint32 pad;
interruptibility_state_t _interruptibility_state;
uint64 pad2;
};
```
* (Input) `regs`:
Expand Down
1 change: 1 addition & 0 deletions include/vcpu_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ struct vcpu_state_t {

uint32_t _activity_state;
uint32_t pad;
uint64_t pad2;
} PACKED;

void dump(void);
Expand Down

0 comments on commit ad2dd49

Please sign in to comment.