linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] selftests: kvm: Overlapped memory regions test
@ 2020-04-15 20:45 Wainer dos Santos Moschetta
  2020-04-15 20:45 ` [PATCH 1/1] selftests: kvm: Add overlapped " Wainer dos Santos Moschetta
  0 siblings, 1 reply; 4+ messages in thread
From: Wainer dos Santos Moschetta @ 2020-04-15 20:45 UTC (permalink / raw)
  To: pbonzini, kvm
  Cc: drjones, sean.j.christopherson, linux-kernel, linux-kselftest,
	krish.sadhukhan

This introduces a test case to check memory slots with overlapped
regions on the guest address cannot be added. The cases checked
are described in the block comment upon test_overlap_memory_regions()
(see the patch 01).

I didn't see the need to calcute the addresses on compile/run-time, so I
just left them hard-coded (remember: aligned 1M to work on s390x).

It works on x86_64, aarch64, and s390x.

The patch is based on queue branch.

Ah, I did some cosmetic changes on test_add_max_memory_regions() too. If
it is not OK to be in a single patch...let me know.

Wainer dos Santos Moschetta (1):
  selftests: kvm: Add overlapped memory regions test

 .../selftests/kvm/set_memory_region_test.c    | 75 ++++++++++++++++++-
 1 file changed, 74 insertions(+), 1 deletion(-)

-- 
2.17.2


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

end of thread, other threads:[~2020-04-16 13:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-15 20:45 [PATCH 0/1] selftests: kvm: Overlapped memory regions test Wainer dos Santos Moschetta
2020-04-15 20:45 ` [PATCH 1/1] selftests: kvm: Add overlapped " Wainer dos Santos Moschetta
2020-04-15 23:57   ` Krish Sadhukhan
2020-04-16 13:53     ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).