diff options
author | Roman Kagan <rkagan@virtuozzo.com> | 2018-07-02 16:41:55 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-07-16 16:58:16 +0200 |
commit | 1b2013ea5ddfd7d6a1426bd716dd6528ec91a8a7 (patch) | |
tree | fbf01c0c9f168b462f0dae98bfb0e48e8b782e1f /target/i386/hyperv.h | |
parent | 696c706642023e60fcce6b38f425910cd01ec0a6 (diff) | |
download | qemu-1b2013ea5ddfd7d6a1426bd716dd6528ec91a8a7.zip qemu-1b2013ea5ddfd7d6a1426bd716dd6528ec91a8a7.tar.gz qemu-1b2013ea5ddfd7d6a1426bd716dd6528ec91a8a7.tar.bz2 |
hyperv: rename vcpu_id to vp_index
In Hyper-V-related code, vCPUs are identified by their VP (virtual
processor) index. Since it's customary for "vcpu_id" in QEMU to mean
APIC id, rename the respective variables to "vp_index" to make the
distinction clear.
Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
Message-Id: <20180702134156.13404-2-rkagan@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/hyperv.h')
-rw-r--r-- | target/i386/hyperv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/i386/hyperv.h b/target/i386/hyperv.h index 0c3b562..eaf3df3 100644 --- a/target/i386/hyperv.h +++ b/target/i386/hyperv.h @@ -23,7 +23,7 @@ typedef void (*HvSintAckClb)(HvSintRoute *sint_route); struct HvSintRoute { uint32_t sint; - uint32_t vcpu_id; + uint32_t vp_index; int gsi; EventNotifier sint_set_notifier; EventNotifier sint_ack_notifier; @@ -32,7 +32,7 @@ struct HvSintRoute { int kvm_hv_handle_exit(X86CPU *cpu, struct kvm_hyperv_exit *exit); -HvSintRoute *kvm_hv_sint_route_create(uint32_t vcpu_id, uint32_t sint, +HvSintRoute *kvm_hv_sint_route_create(uint32_t vp_index, uint32_t sint, HvSintAckClb sint_ack_clb); void kvm_hv_sint_route_destroy(HvSintRoute *sint_route); |