Re: [PATCH v7 04/13] confidential guest support: Move side effect out of machine_set_memory_encryption()

2021-01-15 Thread Cornelia Huck
On Thu, 14 Jan 2021 10:58:02 +1100 David Gibson wrote: > When the "memory-encryption" property is set, we also disable KSM > merging for the guest, since it won't accomplish anything. > > We want that, but doing it in the property set function itself is > thereoretically incorrect, in the

[PATCH v7 04/13] confidential guest support: Move side effect out of machine_set_memory_encryption()

2021-01-13 Thread David Gibson
When the "memory-encryption" property is set, we also disable KSM merging for the guest, since it won't accomplish anything. We want that, but doing it in the property set function itself is thereoretically incorrect, in the unlikely event of some configuration environment that set the property