diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2013-01-22 18:25:01 -0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-01-27 14:34:26 +0100 |
commit | b164e48ed1600055bc190aa3ab42c18004d2c711 (patch) | |
tree | aa0b929a382279f4a2bc3defbae311c0ccc2fdd8 /target-ppc/kvm.c | |
parent | 2969475869a6f33b8883c2fbf90252dcf617902e (diff) | |
download | hqemu-b164e48ed1600055bc190aa3ab42c18004d2c711.zip hqemu-b164e48ed1600055bc190aa3ab42c18004d2c711.tar.gz |
kvm: Create kvm_arch_vcpu_id() function
This will allow each architecture to define how the VCPU ID is set on
the KVM_CREATE_VCPU ioctl call.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Acked-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-ppc/kvm.c')
-rw-r--r-- | target-ppc/kvm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 2f4f068..2c64c63 100644 --- a/target-ppc/kvm.c +++ b/target-ppc/kvm.c @@ -384,6 +384,11 @@ static inline void kvm_fixup_page_sizes(PowerPCCPU *cpu) #endif /* !defined (TARGET_PPC64) */ +unsigned long kvm_arch_vcpu_id(CPUState *cpu) +{ + return cpu->cpu_index; +} + int kvm_arch_init_vcpu(CPUState *cs) { PowerPCCPU *cpu = POWERPC_CPU(cs); |