Skip to content

Commit 6d4e52f

Browse files
committed
Merge branch 'topic/ppc-kvm' into next
Merge our KVM topic branch.
2 parents 7b090b6 + b52e8cd commit 6d4e52f

File tree

6 files changed

+10
-14
lines changed

6 files changed

+10
-14
lines changed

Documentation/virt/kvm/api.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4300,7 +4300,7 @@ operating system that uses the PIT for timing (e.g. Linux 2.4.x).
43004300
4.100 KVM_PPC_CONFIGURE_V3_MMU
43014301
------------------------------
43024302

4303-
:Capability: KVM_CAP_PPC_RADIX_MMU or KVM_CAP_PPC_HASH_MMU_V3
4303+
:Capability: KVM_CAP_PPC_MMU_RADIX or KVM_CAP_PPC_MMU_HASH_V3
43044304
:Architectures: ppc
43054305
:Type: vm ioctl
43064306
:Parameters: struct kvm_ppc_mmuv3_cfg (in)
@@ -4334,7 +4334,7 @@ the Power ISA V3.00, Book III section 5.7.6.1.
43344334
4.101 KVM_PPC_GET_RMMU_INFO
43354335
---------------------------
43364336

4337-
:Capability: KVM_CAP_PPC_RADIX_MMU
4337+
:Capability: KVM_CAP_PPC_MMU_RADIX
43384338
:Architectures: ppc
43394339
:Type: vm ioctl
43404340
:Parameters: struct kvm_ppc_rmmu_info (out)
@@ -8095,7 +8095,7 @@ capability via KVM_ENABLE_CAP ioctl on the vcpu fd. Note that this
80958095
will disable the use of APIC hardware virtualization even if supported
80968096
by the CPU, as it's incompatible with SynIC auto-EOI behavior.
80978097

8098-
8.3 KVM_CAP_PPC_RADIX_MMU
8098+
8.3 KVM_CAP_PPC_MMU_RADIX
80998099
-------------------------
81008100

81018101
:Architectures: ppc
@@ -8105,7 +8105,7 @@ available, means that the kernel can support guests using the
81058105
radix MMU defined in Power ISA V3.00 (as implemented in the POWER9
81068106
processor).
81078107

8108-
8.4 KVM_CAP_PPC_HASH_MMU_V3
8108+
8.4 KVM_CAP_PPC_MMU_HASH_V3
81098109
---------------------------
81108110

81118111
:Architectures: ppc

arch/powerpc/kvm/book3s.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,6 @@ static int kvmppc_book3s_irqprio_deliver(struct kvm_vcpu *vcpu,
360360
break;
361361
}
362362

363-
#if 0
364-
printk(KERN_INFO "Deliver interrupt 0x%x? %x\n", vec, deliver);
365-
#endif
366-
367363
if (deliver)
368364
kvmppc_inject_interrupt(vcpu, vec, 0);
369365

arch/powerpc/kvm/book3s_hv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4857,7 +4857,7 @@ int kvmhv_run_single_vcpu(struct kvm_vcpu *vcpu, u64 time_limit,
48574857
* entering a nested guest in which case the decrementer is now owned
48584858
* by L2 and the L1 decrementer is provided in hdec_expires
48594859
*/
4860-
if (!kvmhv_is_nestedv2() && kvmppc_core_pending_dec(vcpu) &&
4860+
if (kvmppc_core_pending_dec(vcpu) &&
48614861
((tb < kvmppc_dec_expires_host_tb(vcpu)) ||
48624862
(trap == BOOK3S_INTERRUPT_SYSCALL &&
48634863
kvmppc_get_gpr(vcpu, 3) == H_ENTER_NESTED)))

arch/powerpc/kvm/book3s_hv_nestedv2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ gs_msg_ops_kvmhv_nestedv2_config_fill_info(struct kvmppc_gs_buff *gsb,
7171
}
7272

7373
if (kvmppc_gsm_includes(gsm, KVMPPC_GSID_RUN_OUTPUT)) {
74-
kvmppc_gse_put_buff_info(gsb, KVMPPC_GSID_RUN_OUTPUT,
75-
cfg->vcpu_run_output_cfg);
74+
rc = kvmppc_gse_put_buff_info(gsb, KVMPPC_GSID_RUN_OUTPUT,
75+
cfg->vcpu_run_output_cfg);
7676
if (rc < 0)
7777
return rc;
7878
}

include/uapi/linux/kvm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,9 +1221,9 @@ struct kvm_vfio_spapr_tce {
12211221
/* Available with KVM_CAP_SPAPR_RESIZE_HPT */
12221222
#define KVM_PPC_RESIZE_HPT_PREPARE _IOR(KVMIO, 0xad, struct kvm_ppc_resize_hpt)
12231223
#define KVM_PPC_RESIZE_HPT_COMMIT _IOR(KVMIO, 0xae, struct kvm_ppc_resize_hpt)
1224-
/* Available with KVM_CAP_PPC_RADIX_MMU or KVM_CAP_PPC_HASH_MMU_V3 */
1224+
/* Available with KVM_CAP_PPC_MMU_RADIX or KVM_CAP_PPC_MMU_HASH_V3 */
12251225
#define KVM_PPC_CONFIGURE_V3_MMU _IOW(KVMIO, 0xaf, struct kvm_ppc_mmuv3_cfg)
1226-
/* Available with KVM_CAP_PPC_RADIX_MMU */
1226+
/* Available with KVM_CAP_PPC_MMU_RADIX */
12271227
#define KVM_PPC_GET_RMMU_INFO _IOW(KVMIO, 0xb0, struct kvm_ppc_rmmu_info)
12281228
/* Available with KVM_CAP_PPC_GET_CPU_CHAR */
12291229
#define KVM_PPC_GET_CPU_CHAR _IOR(KVMIO, 0xb1, struct kvm_ppc_cpu_char)

tools/include/uapi/linux/kvm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ struct kvm_s390_ucas_mapping {
15021502
/* Available with KVM_CAP_SPAPR_RESIZE_HPT */
15031503
#define KVM_PPC_RESIZE_HPT_PREPARE _IOR(KVMIO, 0xad, struct kvm_ppc_resize_hpt)
15041504
#define KVM_PPC_RESIZE_HPT_COMMIT _IOR(KVMIO, 0xae, struct kvm_ppc_resize_hpt)
1505-
/* Available with KVM_CAP_PPC_RADIX_MMU or KVM_CAP_PPC_HASH_MMU_V3 */
1505+
/* Available with KVM_CAP_PPC_RADIX_MMU or KVM_CAP_PPC_MMU_HASH_V3 */
15061506
#define KVM_PPC_CONFIGURE_V3_MMU _IOW(KVMIO, 0xaf, struct kvm_ppc_mmuv3_cfg)
15071507
/* Available with KVM_CAP_PPC_RADIX_MMU */
15081508
#define KVM_PPC_GET_RMMU_INFO _IOW(KVMIO, 0xb0, struct kvm_ppc_rmmu_info)

0 commit comments

Comments
 (0)