Thread (153 messages) flat view 153 messages, 23 authors, 2023-05-23

Re: [PATCH v10 3/9] KVM: Extend the memslot to support fd-based private memory

From: Chao Peng <hidden>
Date: 2022-12-19 08:01:28
Also in: kvm, linux-arch, linux-doc, linux-fsdevel, linux-mm, lkml, qemu-devel

On Tue, Dec 13, 2022 at 08:04:14PM +0800, Xiaoyao Li wrote:
On 12/8/2022 7:30 PM, Chao Peng wrote:
quoted
On Thu, Dec 08, 2022 at 04:37:03PM +0800, Xiaoyao Li wrote:
quoted
On 12/2/2022 2:13 PM, Chao Peng wrote:

..
quoted
Together with the change, a new config HAVE_KVM_RESTRICTED_MEM is added
and right now it is selected on X86_64 only.
 From the patch implementation, I have no idea why HAVE_KVM_RESTRICTED_MEM is
needed.
The reason is we want KVM further controls the feature enabling. An
opt-in CONFIG_RESTRICTEDMEM can cause problem if user sets that for
unsupported architectures.
HAVE_KVM_RESTRICTED_MEM is not used in this patch. It's better to introduce
it in the patch that actually uses it.
It's being 'used' in this patch by reverse selecting RESTRICTEDMEM in
arch/x86/kvm/Kconfig, this gives people a sense where
restrictedmem_notifier comes from. Introducing the config with other
private/restricted memslot stuff together can also help future
supporting architectures better identify what they need do. But those
are trivial and moving to patch 08 sounds also good to me.

Thanks,
Chao
quoted
Here is the original discussion:
https://lore.kernel.org/all/YkJLFu98hZOvTSrL@google.com/ (local)

Thanks,
Chao
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help