lkml.org 
[lkml]   [2021]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFCv2 05/13] x86/kvmclock: Share hvclock memory with the host
    Date
    hvclock is shared between the guest and the hypervisor. It has to be
    accessible by host.

    Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
    ---
    arch/x86/kernel/kvmclock.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/kvmclock.c
    index aa593743acf6..3d004b278dba 100644
    --- a/arch/x86/kernel/kvmclock.c
    +++ b/arch/x86/kernel/kvmclock.c
    @@ -252,7 +252,7 @@ static void __init kvmclock_init_mem(void)
    * hvclock is shared between the guest and the hypervisor, must
    * be mapped decrypted.
    */
    - if (sev_active()) {
    + if (sev_active() || kvm_mem_protected()) {
    r = set_memory_decrypted((unsigned long) hvclock_mem,
    1UL << order);
    if (r) {
    --
    2.26.3
    \
     
     \ /
      Last update: 2021-04-16 18:10    [W:4.128 / U:0.252 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site