diff options
author | Zhai, Edwin <edwin.zhai@intel.com> | 2010-01-29 01:38:44 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 10:36:06 -0500 |
commit | ab9f4ecbb6d39a18e300a0d10a4968c37404aa76 (patch) | |
tree | 1f7fba2feaeca2f6d643437167c7b9036c909c98 /include/linux | |
parent | 6d3e435e708fa32f99b780caf6c5508a606a513b (diff) |
KVM: enable PCI multiple-segments for pass-through device
Enable optional parameter (default 0) - PCI segment (or domain) besides
BDF, when assigning PCI device to guest.
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Acked-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/kvm.h | 4 | ||||
-rw-r--r-- | include/linux/kvm_host.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index 4c4937e7f65f..dfa54be881f4 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -500,6 +500,7 @@ struct kvm_ioeventfd { | |||
500 | #define KVM_CAP_HYPERV 44 | 500 | #define KVM_CAP_HYPERV 44 |
501 | #define KVM_CAP_HYPERV_VAPIC 45 | 501 | #define KVM_CAP_HYPERV_VAPIC 45 |
502 | #define KVM_CAP_HYPERV_SPIN 46 | 502 | #define KVM_CAP_HYPERV_SPIN 46 |
503 | #define KVM_CAP_PCI_SEGMENT 47 | ||
503 | 504 | ||
504 | #ifdef KVM_CAP_IRQ_ROUTING | 505 | #ifdef KVM_CAP_IRQ_ROUTING |
505 | 506 | ||
@@ -694,8 +695,9 @@ struct kvm_assigned_pci_dev { | |||
694 | __u32 busnr; | 695 | __u32 busnr; |
695 | __u32 devfn; | 696 | __u32 devfn; |
696 | __u32 flags; | 697 | __u32 flags; |
698 | __u32 segnr; | ||
697 | union { | 699 | union { |
698 | __u32 reserved[12]; | 700 | __u32 reserved[11]; |
699 | }; | 701 | }; |
700 | }; | 702 | }; |
701 | 703 | ||
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index dfde04b0d453..665c37063f30 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -400,6 +400,7 @@ struct kvm_assigned_dev_kernel { | |||
400 | struct work_struct interrupt_work; | 400 | struct work_struct interrupt_work; |
401 | struct list_head list; | 401 | struct list_head list; |
402 | int assigned_dev_id; | 402 | int assigned_dev_id; |
403 | int host_segnr; | ||
403 | int host_busnr; | 404 | int host_busnr; |
404 | int host_devfn; | 405 | int host_devfn; |
405 | unsigned int entries_nr; | 406 | unsigned int entries_nr; |