Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
6d4e52f8
Commit
6d4e52f8
authored
May 13, 2024
by
Michael Ellerman
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/ppc-kvm' into next
Merge our KVM topic branch.
parents
7b090b6f
b52e8cd3
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
14 deletions
+10
-14
Documentation/virt/kvm/api.rst
Documentation/virt/kvm/api.rst
+4
-4
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/book3s.c
+0
-4
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv.c
+1
-1
arch/powerpc/kvm/book3s_hv_nestedv2.c
arch/powerpc/kvm/book3s_hv_nestedv2.c
+2
-2
include/uapi/linux/kvm.h
include/uapi/linux/kvm.h
+2
-2
tools/include/uapi/linux/kvm.h
tools/include/uapi/linux/kvm.h
+1
-1
No files found.
Documentation/virt/kvm/api.rst
View file @
6d4e52f8
...
...
@@ -4300,7 +4300,7 @@ operating system that uses the PIT for timing (e.g. Linux 2.4.x).
4.100 KVM_PPC_CONFIGURE_V3_MMU
------------------------------
:Capability: KVM_CAP_PPC_
RADIX_MMU or KVM_CAP_PPC_HASH_MMU
_V3
:Capability: KVM_CAP_PPC_
MMU_RADIX or KVM_CAP_PPC_MMU_HASH
_V3
:Architectures: ppc
:Type: vm ioctl
:Parameters: struct kvm_ppc_mmuv3_cfg (in)
...
...
@@ -4334,7 +4334,7 @@ the Power ISA V3.00, Book III section 5.7.6.1.
4.101
KVM_PPC_GET_RMMU_INFO
---------------------------
:
Capability
:
KVM_CAP_PPC_
RADIX_MMU
:
Capability
:
KVM_CAP_PPC_
MMU_RADIX
:
Architectures
:
ppc
:
Type
:
vm
ioctl
:
Parameters
:
struct
kvm_ppc_rmmu_info
(
out
)
...
...
@@ -8095,7 +8095,7 @@ capability via KVM_ENABLE_CAP ioctl on the vcpu fd. Note that this
will disable the use of APIC hardware virtualization even if supported
by the CPU, as it'
s
incompatible
with
SynIC
auto
-
EOI
behavior
.
8.3
KVM_CAP_PPC_
RADIX_MMU
8.3
KVM_CAP_PPC_
MMU_RADIX
-------------------------
:
Architectures
:
ppc
...
...
@@ -8105,7 +8105,7 @@ available, means that the kernel can support guests using the
radix
MMU
defined
in
Power
ISA
V3
.00
(
as
implemented
in
the
POWER9
processor
).
8.4
KVM_CAP_PPC_
HASH_MMU
_V3
8.4
KVM_CAP_PPC_
MMU_HASH
_V3
---------------------------
:
Architectures
:
ppc
...
...
arch/powerpc/kvm/book3s.c
View file @
6d4e52f8
...
...
@@ -360,10 +360,6 @@ static int kvmppc_book3s_irqprio_deliver(struct kvm_vcpu *vcpu,
break
;
}
#if 0
printk(KERN_INFO "Deliver interrupt 0x%x? %x\n", vec, deliver);
#endif
if
(
deliver
)
kvmppc_inject_interrupt
(
vcpu
,
vec
,
0
);
...
...
arch/powerpc/kvm/book3s_hv.c
View file @
6d4e52f8
...
...
@@ -4857,7 +4857,7 @@ int kvmhv_run_single_vcpu(struct kvm_vcpu *vcpu, u64 time_limit,
* entering a nested guest in which case the decrementer is now owned
* by L2 and the L1 decrementer is provided in hdec_expires
*/
if
(
!
kvmhv_is_nestedv2
()
&&
kvmppc_core_pending_dec
(
vcpu
)
&&
if
(
kvmppc_core_pending_dec
(
vcpu
)
&&
((
tb
<
kvmppc_dec_expires_host_tb
(
vcpu
))
||
(
trap
==
BOOK3S_INTERRUPT_SYSCALL
&&
kvmppc_get_gpr
(
vcpu
,
3
)
==
H_ENTER_NESTED
)))
...
...
arch/powerpc/kvm/book3s_hv_nestedv2.c
View file @
6d4e52f8
...
...
@@ -71,8 +71,8 @@ gs_msg_ops_kvmhv_nestedv2_config_fill_info(struct kvmppc_gs_buff *gsb,
}
if
(
kvmppc_gsm_includes
(
gsm
,
KVMPPC_GSID_RUN_OUTPUT
))
{
kvmppc_gse_put_buff_info
(
gsb
,
KVMPPC_GSID_RUN_OUTPUT
,
cfg
->
vcpu_run_output_cfg
);
rc
=
kvmppc_gse_put_buff_info
(
gsb
,
KVMPPC_GSID_RUN_OUTPUT
,
cfg
->
vcpu_run_output_cfg
);
if
(
rc
<
0
)
return
rc
;
}
...
...
include/uapi/linux/kvm.h
View file @
6d4e52f8
...
...
@@ -1221,9 +1221,9 @@ struct kvm_vfio_spapr_tce {
/* Available with KVM_CAP_SPAPR_RESIZE_HPT */
#define KVM_PPC_RESIZE_HPT_PREPARE _IOR(KVMIO, 0xad, struct kvm_ppc_resize_hpt)
#define KVM_PPC_RESIZE_HPT_COMMIT _IOR(KVMIO, 0xae, struct kvm_ppc_resize_hpt)
/* Available with KVM_CAP_PPC_
RADIX_MMU or KVM_CAP_PPC_HASH_MMU
_V3 */
/* Available with KVM_CAP_PPC_
MMU_RADIX or KVM_CAP_PPC_MMU_HASH
_V3 */
#define KVM_PPC_CONFIGURE_V3_MMU _IOW(KVMIO, 0xaf, struct kvm_ppc_mmuv3_cfg)
/* Available with KVM_CAP_PPC_
RADIX_MMU
*/
/* Available with KVM_CAP_PPC_
MMU_RADIX
*/
#define KVM_PPC_GET_RMMU_INFO _IOW(KVMIO, 0xb0, struct kvm_ppc_rmmu_info)
/* Available with KVM_CAP_PPC_GET_CPU_CHAR */
#define KVM_PPC_GET_CPU_CHAR _IOR(KVMIO, 0xb1, struct kvm_ppc_cpu_char)
...
...
tools/include/uapi/linux/kvm.h
View file @
6d4e52f8
...
...
@@ -1502,7 +1502,7 @@ struct kvm_s390_ucas_mapping {
/* Available with KVM_CAP_SPAPR_RESIZE_HPT */
#define KVM_PPC_RESIZE_HPT_PREPARE _IOR(KVMIO, 0xad, struct kvm_ppc_resize_hpt)
#define KVM_PPC_RESIZE_HPT_COMMIT _IOR(KVMIO, 0xae, struct kvm_ppc_resize_hpt)
/* Available with KVM_CAP_PPC_RADIX_MMU or KVM_CAP_PPC_
HASH_MMU
_V3 */
/* Available with KVM_CAP_PPC_RADIX_MMU or KVM_CAP_PPC_
MMU_HASH
_V3 */
#define KVM_PPC_CONFIGURE_V3_MMU _IOW(KVMIO, 0xaf, struct kvm_ppc_mmuv3_cfg)
/* Available with KVM_CAP_PPC_RADIX_MMU */
#define KVM_PPC_GET_RMMU_INFO _IOW(KVMIO, 0xb0, struct kvm_ppc_rmmu_info)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment