aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm.h
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-06-09 08:56:28 -0400
committerAvi Kivity <avi@redhat.com>2009-09-10 01:32:52 -0400
commit73880c80aa9c8dc353cd0ad26579023213cd5314 (patch)
treed5bee5c87c3468feb941cc898e342f52c0adce19 /include/linux/kvm.h
parent1ed0ce000a6c20c36ec649e32fc24393ef418ed8 (diff)
KVM: Break dependency between vcpu index in vcpus array and vcpu_id.
Archs are free to use vcpu_id as they see fit. For x86 it is used as vcpu's apic id. New ioctl is added to configure boot vcpu id that was assumed to be 0 till now. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm.h')
-rw-r--r--include/linux/kvm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index f1dada0519eb..5037e170a70d 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -430,6 +430,7 @@ struct kvm_trace_rec {
430#ifdef __KVM_HAVE_PIT 430#ifdef __KVM_HAVE_PIT
431#define KVM_CAP_PIT2 33 431#define KVM_CAP_PIT2 33
432#endif 432#endif
433#define KVM_CAP_SET_BOOT_CPU_ID 34
433 434
434#ifdef KVM_CAP_IRQ_ROUTING 435#ifdef KVM_CAP_IRQ_ROUTING
435 436
@@ -537,6 +538,7 @@ struct kvm_irqfd {
537#define KVM_DEASSIGN_DEV_IRQ _IOW(KVMIO, 0x75, struct kvm_assigned_irq) 538#define KVM_DEASSIGN_DEV_IRQ _IOW(KVMIO, 0x75, struct kvm_assigned_irq)
538#define KVM_IRQFD _IOW(KVMIO, 0x76, struct kvm_irqfd) 539#define KVM_IRQFD _IOW(KVMIO, 0x76, struct kvm_irqfd)
539#define KVM_CREATE_PIT2 _IOW(KVMIO, 0x77, struct kvm_pit_config) 540#define KVM_CREATE_PIT2 _IOW(KVMIO, 0x77, struct kvm_pit_config)
541#define KVM_SET_BOOT_CPU_ID _IO(KVMIO, 0x78)
540 542
541/* 543/*
542 * ioctls for vcpu fds 544 * ioctls for vcpu fds