aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/kvm/interrupt.c6
-rw-r--r--arch/s390/kvm/vsie.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c
index ea8dce299954..d4f031e086fc 100644
--- a/arch/s390/kvm/interrupt.c
+++ b/arch/s390/kvm/interrupt.c
@@ -2678,9 +2678,13 @@ static int flic_set_attr(struct kvm_device *dev, struct kvm_device_attr *attr)
kvm_s390_clear_float_irqs(dev->kvm);
break;
case KVM_DEV_FLIC_APF_ENABLE:
+ if (kvm_is_ucontrol(dev->kvm))
+ return -EINVAL;
dev->kvm->arch.gmap->pfault_enabled = 1;
break;
case KVM_DEV_FLIC_APF_DISABLE_WAIT:
+ if (kvm_is_ucontrol(dev->kvm))
+ return -EINVAL;
dev->kvm->arch.gmap->pfault_enabled = 0;
/*
* Make sure no async faults are in transition when
@@ -2894,6 +2898,8 @@ int kvm_set_routing_entry(struct kvm *kvm,
switch (ue->type) {
/* we store the userspace addresses instead of the guest addresses */
case KVM_IRQ_ROUTING_S390_ADAPTER:
+ if (kvm_is_ucontrol(kvm))
+ return -EINVAL;
e->set = set_adapter_int;
uaddr = gmap_translate(kvm->arch.gmap, ue->u.adapter.summary_addr);
if (uaddr == -EFAULT)
diff --git a/arch/s390/kvm/vsie.c b/arch/s390/kvm/vsie.c
index 150b9387860a..a687695d8f68 100644
--- a/arch/s390/kvm/vsie.c
+++ b/arch/s390/kvm/vsie.c
@@ -854,7 +854,7 @@ unpin:
static void unpin_scb(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page,
gpa_t gpa)
{
- hpa_t hpa = (hpa_t) vsie_page->scb_o;
+ hpa_t hpa = virt_to_phys(vsie_page->scb_o);
if (hpa)
unpin_guest_page(vcpu->kvm, gpa, hpa);
74806f69b8668ea0e98cd9d461b7803ffa1fcdf3&follow=1'>drm/xe/guc: Default log level to non-verboseLucas De Marchi1-1/+1 2025-07-10drm/xe/bmg: Don't use WA 16023588340 and 22019338487 on VFMichal Wajdeczko1-2/+2 2025-07-10drm/xe/guc: Recommend GuC v70.46.2 for BMG, LNL, DG2Julia Filipchuk1-3/+3 2025-07-10drm/xe/pm: Correct comment of xe_pm_set_vram_threshold()Shuicheng Lin1-3/+5 2025-07-10drm/xe: Release runtime pm for error path of xe_devcoredump_read()Shuicheng Lin1-10/+28 2025-07-10drm/xe/pm: Restore display pm if there is error after display suspendShuicheng Lin1-2/+1 2025-07-10selftests: net: lib: fix shift count out of rangeHangbin Liu1-1/+1 2025-07-10selftests: Add IPv6 multicast route generation tests for GRE devices.Guillaume Nault1-10/+17 2025-07-10gre: Fix IPv6 multicast route creation.Guillaume Nault1-7/+2 2025-07-10net: phy: microchip: limit 100M workaround to link-down events on LAN88xxOleksij Rempel1-1/+1 2025-07-10net: phy: microchip: Use genphy_soft_reset() to purge stale LPA bitsOleksij Rempel1-0/+1 2025-07-10ibmvnic: Fix hardcoded NUM_RX_STATS/NUM_TX_STATS with dynamic sizeofMingming Cao1-2/+6 2025-07-10net: appletalk: Fix device refcount leak in atrtr_create()Kito Xu1-0/+1 2025-07-10netfilter: flowtable: account for Ethernet header in nf_flow_pppoe_proto()Eric Dumazet1-1/+1 2025-07-10drm/i915/bios: Apply vlv_fixup_mipi_sequences() to v2 mipi-sequences tooHans de Goede1-4/+4 2025-07-10wifi: mac80211: add the virtual monitor after reconfig completeMiri Korenblit1-5/+4 2025-07-10wifi: mac80211: always initialize sdata::key_listMiri Korenblit1-2/+2 2025-07-10net/sched: sch_qfq: Fix null-deref in agg_dequeueXiang Mei4-28/+25 2025-07-09rxrpc: Fix oops due to non-existence of prealloc backlog structDavid Howells1-0/+3 2025-07-09rxrpc: Fix bug due to prealloc collisionDavid Howells1-0/+1 2025-07-09MAINTAINERS: remove myself as netronome maintainerLouis Peens1-2/+2