lkml.org 
[lkml]   [2023]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH 2/4] swiotlb: Add a new cc-swiotlb implementation for Confidential VMs
    From
    Hi--

    On 1/28/23 00:32, GuoRui.Yu wrote:
    > diff --git a/kernel/dma/Kconfig b/kernel/dma/Kconfig
    > index 56866aaa2ae1..7e6b20d2091f 100644
    > --- a/kernel/dma/Kconfig
    > +++ b/kernel/dma/Kconfig
    > @@ -78,8 +78,18 @@ config ARCH_HAS_FORCE_DMA_UNENCRYPTED
    >
    > config SWIOTLB
    > bool
    > + depends on !CC_SWIOTLB
    > select NEED_DMA_MAP_STATE
    >
    > +config CC_SWIOTLB
    > + bool "Enable cc-swiotlb for Confidential VMs"
    > + default n
    > + select NEED_DMA_MAP_STATE
    > + help
    > + This enables a cc-swiotlb implementation for Confidential VMs,
    > + which allows allocating the SWIOTLB buffer allocation on runtime.

    Two "allocat..." words seems to be redundant. Probably the second one
    can be dropped.
    Also, instead of "on runtime", how about "at runtime"?

    > + If unsure, say "n".

    Thanks.
    --
    ~Randy

    \
     
     \ /
      Last update: 2023-03-27 00:00    [W:4.069 / U:0.208 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site