Re: [PATCH] KVM: s390: Beautify skey enable check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20.07.2018 16:10, Farhan Ali wrote:
> 
> 
> On 07/20/2018 09:40 AM, Janosch Frank wrote:
>>> Now we have 2 variables for skeys (use_skf and skey_enabled), shouldn't
>>> we combine them into one struct? I feel it would be easier to understand
>>> the code.
>> use_skf is the indication if we are allowed to use the storage key
>> facility for skey interpretation. vcpu->arch.skey_enabled is a direct
>> indication if we removed the ictls/kss on this vcpu.
>>
> 
> Right, my point being if it made sense to have both the variables in one 
> in one struct. Regardless of that, I think the patch is an improvement 
> over the long if statement, so

use_skf is guest wide, so it doesn't go into a vcpu struct, skey enabled
is vcpu specific, so bundling them doesn't make sense.

> 
> Acked-by: Farhan Ali <alifm@xxxxxxxxxxxxx>
> 

Thanks!




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux