History

KVM: PPC: Add support for 64bit TCE windows

The existing KVM_CREATE_SPAPR_TCE only supports 32bit windows which is not enough for directly mapped windows as the guest can get more than 4GB. This adds KVM_CREATE_SPAPR_TCE_64 ioctl and advertises it via KVM_CAP_SPAPR_TCE_64 capability. The table size is checked against the locked memory limit. Since 64bit windows are to support Dynamic DMA windows (DDW), let's add @bus_offset and @page_shift which are also required by DDW.

Alexey Kardashevskiy committed 10 years ago

Commit 58ded421 parent 14f853f6 files · +75 −5Browse files

Showing the changes to include/uapi (1 of 6 files). Show all

Unified · Split

include/uapi/linux/kvm.h+2−0
@@ -1143,6 +1143,8 @@ struct kvm_s390_ucas_mapping { · 1142 unmodified lines
11431143 /* Available with KVM_CAP_PPC_ALLOC_HTAB */
11441144 #define KVM_PPC_ALLOCATE_HTAB _IOWR(KVMIO, 0xa7, __u32)
11451145 #define KVM_CREATE_SPAPR_TCE _IOW(KVMIO, 0xa8, struct kvm_create_spapr_tce)
1146+#define KVM_CREATE_SPAPR_TCE_64 _IOW(KVMIO, 0xa8, \
1147+ struct kvm_create_spapr_tce_64)
11461148 /* Available with KVM_CAP_RMA */
11471149 #define KVM_ALLOCATE_RMA _IOR(KVMIO, 0xa9, struct kvm_allocate_rma)
11481150 /* Available with KVM_CAP_PPC_HTAB_FD */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t