mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH gmem 0/5] KVM: selftests: Fix multiple memslots in conv test
@ 2023-10-23 19:15 Sean Christopherson
  2023-10-23 19:15 ` [PATCH gmem 1/5] KVM: selftests: Rework fallocate() helper to work across multiple memslots Sean Christopherson
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Sean Christopherson @ 2023-10-23 19:15 UTC (permalink / raw)
  To: Sean Christopherson, Paolo Bonzini; +Cc: kvm, linux-kernel, Michael Roth

Rework the private memory conversions selftest to allow the user to specify
a (somewhat) arbitrary number of memslots instead of testing only '1' or
"nr_vcpus" memslots.  Creating more memslots than vCPUs is particuarly
interesting as it results in a single vCPU's data chunk being spread across
multiple memslots, which in turn results in the test changing attributes
across multiple memslots in a single KVM_SET_MEMORY_ATTRIBUTES.

This also fixes the issues reported by Mike where the test would crash when
run with multiple vCPUs and a single memslot.

Sean Christopherson (5):
  KVM: selftests: Rework fallocate() helper to work across multiple
    memslots
  KVM: selftests: Handle memslot splits in private mem conversions test
  KVM: selftests: Let user specify nr of memslots in private mem
    conversion
  KVM: selftests: Use dedicated pattern for testing that mem is shared
    by default
  KVM: selftests: Verify default pattern was written in private mem
    conversion

 tools/testing/selftests/kvm/lib/kvm_util.c    | 34 ++++----
 .../kvm/x86_64/private_mem_conversions_test.c | 87 +++++++++++--------
 2 files changed, 69 insertions(+), 52 deletions(-)


base-commit: 911b515af3ec5f53992b9cc162cf7d3893c2fbe2
-- 
2.42.0.758.gaed0368e0e-goog


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-10-23 19:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-23 19:15 [PATCH gmem 0/5] KVM: selftests: Fix multiple memslots in conv test Sean Christopherson
2023-10-23 19:15 ` [PATCH gmem 1/5] KVM: selftests: Rework fallocate() helper to work across multiple memslots Sean Christopherson
2023-10-23 19:15 ` [PATCH gmem 2/5] KVM: selftests: Handle memslot splits in private mem conversions test Sean Christopherson
2023-10-23 19:15 ` [PATCH gmem 3/5] KVM: selftests: Let user specify nr of memslots in private mem conversion Sean Christopherson
2023-10-23 19:15 ` [PATCH gmem 4/5] KVM: selftests: Use dedicated pattern for testing that mem is shared by default Sean Christopherson
2023-10-23 19:15 ` [PATCH gmem 5/5] KVM: selftests: Verify default pattern was written in private mem conversion Sean Christopherson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®