diff options
author | Andreas Färber <afaerber@suse.de> | 2012-10-31 05:29:00 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-12-19 14:09:31 +0100 |
commit | 8737c51c0444f832c4e97d7eb7540eae457e08e4 (patch) | |
tree | 3d8a23a7dca0caff893d18a194415981309e8b68 /include | |
parent | a404b61244ff555ace0a1360fc22275fbeda503e (diff) |
cpu: Move kvm_fd into CPUState
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/cpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/qemu/cpu.h b/include/qemu/cpu.h index 61b76982f1..6049a20a4d 100644 --- a/include/qemu/cpu.h +++ b/include/qemu/cpu.h @@ -57,6 +57,7 @@ typedef struct CPUClass { * @created: Indicates whether the CPU thread has been successfully created. * @stop: Indicates a pending stop request. * @stopped: Indicates the CPU has been artificially stopped. + * @kvm_fd: vCPU file descriptor for KVM. * * State of one CPU core or thread. */ @@ -77,6 +78,10 @@ struct CPUState { bool stop; bool stopped; +#if !defined(CONFIG_USER_ONLY) + int kvm_fd; +#endif + /* TODO Move common fields from CPUArchState here. */ }; |