[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/7] RAMBlock: make guest_memfd require coordinate discard
From: |
Chenyi Qiang |
Subject: |
[PATCH 6/7] RAMBlock: make guest_memfd require coordinate discard |
Date: |
Fri, 13 Dec 2024 15:08:48 +0800 |
As guest_memfd is now managed by guest_memfd_manager with
RamDiscardManager, only block uncoordinated discard.
Signed-off-by: Chenyi Qiang <chenyi.qiang@intel.com>
---
system/physmem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/system/physmem.c b/system/physmem.c
index 532182a6dd..585090b063 100644
--- a/system/physmem.c
+++ b/system/physmem.c
@@ -1872,7 +1872,7 @@ static void ram_block_add(RAMBlock *new_block, Error
**errp)
assert(kvm_enabled());
assert(new_block->guest_memfd < 0);
- ret = ram_block_discard_require(true);
+ ret = ram_block_coordinated_discard_require(true);
if (ret < 0) {
error_setg_errno(errp, -ret,
"cannot set up private guest memory: discard
currently blocked");
--
2.43.5
- [PATCH 0/7] Enable shared device assignment, Chenyi Qiang, 2024/12/13
- [PATCH 1/7] memory: Export a helper to get intersection of a MemoryRegionSection with a given range, Chenyi Qiang, 2024/12/13
- [PATCH 2/7] guest_memfd: Introduce an object to manage the guest-memfd with RamDiscardManager, Chenyi Qiang, 2024/12/13
- [PATCH 3/7] guest_memfd: Introduce a callback to notify the shared/private state change, Chenyi Qiang, 2024/12/13
- [PATCH 5/7] memory: Register the RamDiscardManager instance upon guest_memfd creation, Chenyi Qiang, 2024/12/13
- [PATCH 4/7] KVM: Notify the state change event during shared/private conversion, Chenyi Qiang, 2024/12/13
- [PATCH 6/7] RAMBlock: make guest_memfd require coordinate discard,
Chenyi Qiang <=
- [RFC PATCH 7/7] memory: Add a new argument to indicate the request attribute in RamDismcardManager helpers, Chenyi Qiang, 2024/12/13