File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -441,7 +441,10 @@ static inline int share(unsigned long addr, u16 cmd)
441
441
442
442
if (!uv_call (0 , (u64 )& uvcb ))
443
443
return 0 ;
444
- return - EINVAL ;
444
+ pr_err ("%s UVC failed (rc: 0x%x, rrc: 0x%x), possible hypervisor bug.\n" ,
445
+ uvcb .header .cmd == UVC_CMD_SET_SHARED_ACCESS ? "Share" : "Unshare" ,
446
+ uvcb .header .rc , uvcb .header .rrc );
447
+ panic ("System security cannot be guaranteed unless the system panics now.\n" );
445
448
}
446
449
447
450
/*
Original file line number Diff line number Diff line change @@ -267,7 +267,12 @@ static inline unsigned long kvm_s390_get_gfn_end(struct kvm_memslots *slots)
267
267
268
268
static inline u32 kvm_s390_get_gisa_desc (struct kvm * kvm )
269
269
{
270
- u32 gd = virt_to_phys (kvm -> arch .gisa_int .origin );
270
+ u32 gd ;
271
+
272
+ if (!kvm -> arch .gisa_int .origin )
273
+ return 0 ;
274
+
275
+ gd = virt_to_phys (kvm -> arch .gisa_int .origin );
271
276
272
277
if (gd && sclp .has_gisaf )
273
278
gd |= GISA_FORMAT1 ;
You can’t perform that action at this time.
0 commit comments