File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -9655,6 +9655,7 @@ F: Documentation/virt/kvm/s390*
96559655F: arch/s390/include/asm/gmap.h
96569656F: arch/s390/include/asm/kvm*
96579657F: arch/s390/include/uapi/asm/kvm*
9658+ F: arch/s390/kernel/uv.c
96589659F: arch/s390/kvm/
96599660F: arch/s390/mm/gmap.c
96609661F: tools/testing/selftests/kvm/*/s390x/
Original file line number Diff line number Diff line change @@ -129,8 +129,15 @@ int uv_destroy_page(unsigned long paddr)
129129 .paddr = paddr
130130 };
131131
132- if (uv_call (0 , (u64 )& uvcb ))
132+ if (uv_call (0 , (u64 )& uvcb )) {
133+ /*
134+ * Older firmware uses 107/d as an indication of a non secure
135+ * page. Let us emulate the newer variant (no-op).
136+ */
137+ if (uvcb .header .rc == 0x107 && uvcb .header .rrc == 0xd )
138+ return 0 ;
133139 return - EINVAL ;
140+ }
134141 return 0 ;
135142}
136143
You can’t perform that action at this time.
0 commit comments