RE: [外部邮件] Re: [PATCH] x86/kvm: fix the decrypted pages free in kvmclock

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

 




> 
> 
> Out of curiosity,
> 
> shouldn't we rather try to make set_memory_decrypted() more atomic to avoid
> the need to hunt down all users of the API? E.g. in Hyper-V's
> __vmbus_establish_gpadl() I see:
> 
>      ret = set_memory_decrypted((unsigned long)kbuffer,
>                                 PFN_UP(size));
>      if (ret) {
>              dev_warn(&channel->device_obj->device,
> 	     ...
> 
> doesn't it have the exact same issue you're trying to address for kvmclock?
> 

This patch should show the reason

https://lkml.org/lkml/2023/10/24/1369

thanks

-Li




[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