<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/kvm/lib/kvm_util.c, branch linux-5.7.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.7.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.7.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-05-07T10:13:42Z</updated>
<entry>
<title>KVM: selftests: Add KVM_SET_GUEST_DEBUG test</title>
<updated>2020-05-07T10:13:42Z</updated>
<author>
<name>Peter Xu</name>
</author>
<published>2020-05-05T20:50:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=449aa906e67e57636086967bf0edc1328fd0ca9f'/>
<id>urn:sha1:449aa906e67e57636086967bf0edc1328fd0ca9f</id>
<content type='text'>
Covers fundamental tests for KVM_SET_GUEST_DEBUG. It is very close to the debug
test in kvm-unit-test, but doing it from outside the guest.

Signed-off-by: Peter Xu &lt;peterx@redhat.com&gt;
Message-Id: &lt;20200505205000.188252-4-peterx@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: Fix cosmetic copy-paste error in vm_mem_region_move()</title>
<updated>2020-03-26T09:58:28Z</updated>
<author>
<name>Sean Christopherson</name>
</author>
<published>2020-03-20T20:55:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4b547a869db980cd32936bd4ad8f6a33371419ac'/>
<id>urn:sha1:4b547a869db980cd32936bd4ad8f6a33371419ac</id>
<content type='text'>
Fix a copy-paste typo in a comment and error message.

Signed-off-by: Sean Christopherson &lt;sean.j.christopherson@intel.com&gt;
Message-Id: &lt;20200320205546.2396-3-sean.j.christopherson@intel.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>selftests: kvm: Uses TEST_FAIL in tests/utilities</title>
<updated>2020-03-16T16:59:11Z</updated>
<author>
<name>Wainer dos Santos Moschetta</name>
</author>
<published>2020-03-10T02:50:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=352be2c539d01ae050b5fa3cbd90978ff19f1fc6'/>
<id>urn:sha1:352be2c539d01ae050b5fa3cbd90978ff19f1fc6</id>
<content type='text'>
Changed all tests and utilities to use TEST_FAIL macro
instead of TEST_ASSERT(false,...).

Signed-off-by: Wainer dos Santos Moschetta &lt;wainersm@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: Introduce steal-time test</title>
<updated>2020-03-16T16:59:07Z</updated>
<author>
<name>Andrew Jones</name>
</author>
<published>2020-03-13T15:56:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=94c4b76b88d40f9062dc32ff2fff551ae1791c1e'/>
<id>urn:sha1:94c4b76b88d40f9062dc32ff2fff551ae1791c1e</id>
<content type='text'>
The steal-time test confirms what is reported to the guest as stolen
time is consistent with the run_delay reported for the VCPU thread
on the host. Both x86_64 and AArch64 have the concept of steal/stolen
time so this test is introduced for both architectures.

While adding the test we ensure .gitignore has all tests listed
(it was missing s390x/resets) and that the Makefile has all tests
listed in alphabetical order (not really necessary, but it almost
was already...). We also extend the common API with a new num-guest-
pages call and a new timespec call.

Signed-off-by: Andrew Jones &lt;drjones@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: virt_map should take npages, not size</title>
<updated>2020-03-16T16:59:06Z</updated>
<author>
<name>Andrew Jones</name>
</author>
<published>2020-03-13T15:56:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=beca54702dc694970dd9727dde59cf5f56c4dbd8'/>
<id>urn:sha1:beca54702dc694970dd9727dde59cf5f56c4dbd8</id>
<content type='text'>
Also correct the comment and prototype for vm_create_default(),
as it takes a number of pages, not a size.

Signed-off-by: Andrew Jones &lt;drjones@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: Use consistent message for test skipping</title>
<updated>2020-03-16T16:59:05Z</updated>
<author>
<name>Andrew Jones</name>
</author>
<published>2020-03-10T09:15:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d0aac3320d1f15ae2113ddf210945c3686951330'/>
<id>urn:sha1:d0aac3320d1f15ae2113ddf210945c3686951330</id>
<content type='text'>
Signed-off-by: Andrew Jones &lt;drjones@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: Enable printf format warnings for TEST_ASSERT</title>
<updated>2020-03-16T16:59:04Z</updated>
<author>
<name>Andrew Jones</name>
</author>
<published>2020-03-10T09:15:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d9eaf19ecc12668caf280f3d8e24b22ff5ba716b'/>
<id>urn:sha1:d9eaf19ecc12668caf280f3d8e24b22ff5ba716b</id>
<content type='text'>
Use the format attribute to enable printf format warnings, and
then fix them all.

Signed-off-by: Andrew Jones &lt;drjones@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: Add test for KVM_SET_USER_MEMORY_REGION</title>
<updated>2020-03-16T16:57:27Z</updated>
<author>
<name>Sean Christopherson</name>
</author>
<published>2020-02-18T21:07:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=13e48aa9429d1be05ecf8b9eefb212ac58f3f704'/>
<id>urn:sha1:13e48aa9429d1be05ecf8b9eefb212ac58f3f704</id>
<content type='text'>
Add a KVM selftest to test moving the base gfn of a userspace memory
region.  Although the basic concept of moving memory regions is not x86
specific, the assumptions regarding large pages and MMIO shenanigans
used to verify the correctness make this x86_64 only for the time being.

Reviewed-by: Peter Xu &lt;peterx@redhat.com&gt;
Signed-off-by: Sean Christopherson &lt;sean.j.christopherson@intel.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: Rework debug message printing</title>
<updated>2020-03-16T16:57:06Z</updated>
<author>
<name>Andrew Jones</name>
</author>
<published>2020-02-14T14:59:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3439d886e4d9b79b6b226e70c08d312bd31acbd4'/>
<id>urn:sha1:3439d886e4d9b79b6b226e70c08d312bd31acbd4</id>
<content type='text'>
There were a few problems with the way we output "debug" messages.
The first is that we used DEBUG() which is defined when NDEBUG is
not defined, but NDEBUG will never be defined for kselftests
because it relies too much on assert(). The next is that most
of the DEBUG() messages were actually "info" messages, which
users may want to turn off if they just want a silent test that
either completes or asserts. Finally, a debug message output from
a library function, and thus for all tests, was annoying when its
information wasn't interesting for a test.

Rework these messages so debug messages only output when DEBUG
is defined and info messages output unless QUIET is defined.
Also name the functions pr_debug and pr_info and make sure that
when they're disabled we eat all the inputs. The later avoids
unused variable warnings when the variables were only defined
for the purpose of printing.

Signed-off-by: Andrew Jones &lt;drjones@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: Introduce num-pages conversion utilities</title>
<updated>2020-02-24T19:05:23Z</updated>
<author>
<name>Andrew Jones</name>
</author>
<published>2020-02-14T14:59:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=87a802d93e7ef55216d8884fdf7e5f491a6fe501'/>
<id>urn:sha1:87a802d93e7ef55216d8884fdf7e5f491a6fe501</id>
<content type='text'>
Guests and hosts don't have to have the same page size. This means
calculations are necessary when selecting the number of guest pages
to allocate in order to ensure the number is compatible with the
host. Provide utilities to help with those calculations and apply
them where appropriate.

We also revert commit bffed38d4fb5 ("kvm: selftests: aarch64:
dirty_log_test: fix unaligned memslot size") and then use
vm_adjust_num_guest_pages() there instead.

Signed-off-by: Andrew Jones &lt;drjones@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
</feed>
