History

kvm: powerpc: book3s: Allow the HV and PR selection per virtual machine

This moves the kvmppc_ops callbacks to be a per VM entity. This enables us to select HV and PR mode when creating a VM. We also allow both kvm-hv and kvm-pr kernel module to be loaded. To achieve this we move /dev/kvm ownership to kvm.ko module. Depending on which KVM mode we select during VM creation we take a reference count on respective module

Aneesh Kumar K.V committed 13 years ago

Commit cbbc58d1 parent 558702714 files · +187 −91Browse files

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

Unified · Split

include/uapi/linux/kvm.h+4−0
@@ -518,6 +518,10 @@ struct kvm_ppc_smmu_info { · 517 unmodified lines
518518 /* machine type bits, to be used as argument to KVM_CREATE_VM */
519519 #define KVM_VM_S390_UCONTROL 1
520520
521+/* on ppc, 0 indicate default, 1 should force HV and 2 PR */
522+#define KVM_VM_PPC_HV 1
523+#define KVM_VM_PPC_PR 2
524+
521525 #define KVM_S390_SIE_PAGE_OFFSET 1
522526
523527 /*

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