diff options
author | Alexander Graf <agraf@csgraf.de> | 2021-06-03 14:09:34 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-06-03 16:43:27 +0100 |
commit | b533450e74500dd67f0aa49775809ea33bc465b7 (patch) | |
tree | ed4a54d0c402c554796ffaac9b7418848d53469f /include/sysemu/hvf_int.h | |
parent | d662ede2b1eb033883b7c96866e84e8b54524ccb (diff) | |
download | qemu-b533450e74500dd67f0aa49775809ea33bc465b7.zip qemu-b533450e74500dd67f0aa49775809ea33bc465b7.tar.gz qemu-b533450e74500dd67f0aa49775809ea33bc465b7.tar.bz2 |
hvf: Introduce hvf vcpu struct
We will need more than a single field for hvf going forward. To keep
the global vcpu struct uncluttered, let's allocate a special hvf vcpu
struct, similar to how hax does it.
Signed-off-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
Tested-by: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Message-id: 20210519202253.76782-12-agraf@csgraf.de
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/sysemu/hvf_int.h')
-rw-r--r-- | include/sysemu/hvf_int.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sysemu/hvf_int.h b/include/sysemu/hvf_int.h index fd1dcaf..8b66a4e 100644 --- a/include/sysemu/hvf_int.h +++ b/include/sysemu/hvf_int.h @@ -43,6 +43,10 @@ struct HVFState { }; extern HVFState *hvf_state; +struct hvf_vcpu_state { + int fd; +}; + void assert_hvf_ok(hv_return_t ret); int hvf_arch_init_vcpu(CPUState *cpu); void hvf_arch_vcpu_destroy(CPUState *cpu); |