<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/kvm/lib/aarch64, branch linux-5.13.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.13.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.13.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-11-15T14:49:19Z</updated>
<entry>
<title>KVM: selftests: Make vm_create_default common</title>
<updated>2020-11-15T14:49:19Z</updated>
<author>
<name>Andrew Jones</name>
</author>
<published>2020-11-11T12:26:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ec2f18bb4783648041498b06d4bff222821efed1'/>
<id>urn:sha1:ec2f18bb4783648041498b06d4bff222821efed1</id>
<content type='text'>
The code is almost 100% the same anyway. Just move it to common
and add a few arch-specific macros.

Reviewed-by: Peter Xu &lt;peterx@redhat.com&gt;
Reviewed-by: Ben Gardon &lt;bgardon@google.com&gt;
Signed-off-by: Andrew Jones &lt;drjones@redhat.com&gt;
Message-Id: &lt;20201111122636.73346-5-drjones@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>selftests: kvm: Add exception handling to selftests</title>
<updated>2020-11-08T11:02:15Z</updated>
<author>
<name>Aaron Lewis</name>
</author>
<published>2020-10-12T19:47:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=29faeb9632012d6c3fa4aa33c3d589b9ff18b206'/>
<id>urn:sha1:29faeb9632012d6c3fa4aa33c3d589b9ff18b206</id>
<content type='text'>
Add the infrastructure needed to enable exception handling in selftests.
This allows any of the exception and interrupt vectors to be overridden
in the guest.

Signed-off-by: Aaron Lewis &lt;aaronlewis@google.com&gt;
Reviewed-by: Alexander Graf &lt;graf@amazon.com&gt;
Message-Id: &lt;20201012194716.3950330-4-aaronlewis@google.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>selftests: kvm: Clear uc so UCALL_NONE is being properly reported</title>
<updated>2020-11-08T11:02:14Z</updated>
<author>
<name>Aaron Lewis</name>
</author>
<published>2020-10-12T19:47:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=85f2a4320ef27ce74b9da0631460561028c48756'/>
<id>urn:sha1:85f2a4320ef27ce74b9da0631460561028c48756</id>
<content type='text'>
Ensure the out value 'uc' in get_ucall() is properly reporting
UCALL_NONE if the call fails.  The return value will be correctly
reported, however, the out parameter 'uc' will not be.  Clear the struct
to ensure the correct value is being reported in the out parameter.

Signed-off-by: Aaron Lewis &lt;aaronlewis@google.com&gt;
Reviewed-by: Andrew Jones &lt;drjones@redhat.com&gt;
Reviewed-by: Alexander Graf &lt;graf@amazon.com&gt;
Message-Id: &lt;20201012194716.3950330-3-aaronlewis@google.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: Share common API documentation</title>
<updated>2020-03-16T16:59:02Z</updated>
<author>
<name>Andrew Jones</name>
</author>
<published>2020-03-10T09:15:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=425936246fbe11728ebd787e9199734f3edc2df4'/>
<id>urn:sha1:425936246fbe11728ebd787e9199734f3edc2df4</id>
<content type='text'>
Move function documentation comment blocks to the header files in
order to avoid duplicating them for each architecture. While at
it clean up and fix up the comment blocks.

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: 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: Add support for vcpu_args_set to aarch64 and s390x</title>
<updated>2020-03-16T16:57:04Z</updated>
<author>
<name>Ben Gardon</name>
</author>
<published>2020-01-23T18:04:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9bbf24744e12bb6b9b32e30917b07f9242cc0341'/>
<id>urn:sha1:9bbf24744e12bb6b9b32e30917b07f9242cc0341</id>
<content type='text'>
Currently vcpu_args_set is only implemented for x86. This makes writing
tests with multiple vCPUs difficult as each guest vCPU must either a.)
do the same thing or b.) derive some kind of unique token from it's
registers or the architecture. To simplify the process of writing tests
with multiple vCPUs for s390 and aarch64, add set args functions for
those architectures.

Signed-off-by: Ben Gardon &lt;bgardon@google.com&gt;
[Fixed array index (num =&gt; i) and made some style changes.]
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: aarch64: Use stream when given</title>
<updated>2020-02-24T19:05:19Z</updated>
<author>
<name>Andrew Jones</name>
</author>
<published>2020-02-14T14:59:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f09ab268bbb26d5d851636801cafe73456ff73ab'/>
<id>urn:sha1:f09ab268bbb26d5d851636801cafe73456ff73ab</id>
<content type='text'>
I'm not sure how we ended up using printf instead of fprintf in
virt_dump(). Fix it.

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 VM_MODE_PXXV48_4K</title>
<updated>2019-09-24T11:37:22Z</updated>
<author>
<name>Peter Xu</name>
</author>
<published>2019-08-30T01:36:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=567a9f1e9deb273a2c02dd18c254208537fcefaa'/>
<id>urn:sha1:567a9f1e9deb273a2c02dd18c254208537fcefaa</id>
<content type='text'>
The naming VM_MODE_P52V48_4K is explicit but unclear when used on
x86_64 machines, because x86_64 machines are having various physical
address width rather than some static values.  Here's some examples:

  - Intel Xeon E3-1220:  36 bits
  - Intel Core i7-8650:  39 bits
  - AMD   EPYC 7251:     48 bits

All of them are using 48 bits linear address width but with totally
different physical address width (and most of the old machines should
be less than 52 bits).

Let's create a new guest mode called VM_MODE_PXXV48_4K for current
x86_64 tests and make it as the default to replace the old naming of
VM_MODE_P52V48_4K because it shows more clearly that the PA width is
not really a constant.  Meanwhile we also stop assuming all the x86
machines are having 52 bits PA width but instead we fetch the real
vm-&gt;pa_bits from CPUID 0x80000008 during runtime.

We currently make this exclusively used by x86_64 but no other arch.

As a slight touch up, moving DEBUG macro from dirty_log_test.c to
kvm_util.h so lib can use it too.

Signed-off-by: Peter Xu &lt;peterx@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: Split ucall.c into architecture specific files</title>
<updated>2019-08-02T13:44:16Z</updated>
<author>
<name>Thomas Huth</name>
</author>
<published>2019-07-31T15:15:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2040f414d12f31be3e73eb3f5048d2b1cdec48f6'/>
<id>urn:sha1:2040f414d12f31be3e73eb3f5048d2b1cdec48f6</id>
<content type='text'>
The way we exit from a guest to userspace is very specific to the
architecture: On x86, we use PIO, on aarch64 we are using MMIO and on
s390x we're going to use an instruction instead. The possibility to
select a type via the ucall_type_t enum is currently also completely
unused, so the code in ucall.c currently looks more complex than
required. Let's split this up into architecture specific ucall.c
files instead, so we can get rid of the #ifdefs and the unnecessary
ucall_type_t handling.

Reviewed-by: Andrew Jones &lt;drjones@redhat.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
Acked-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Link: https://lore.kernel.org/r/20190731151525.17156-2-thuth@redhat.com
Signed-off-by: Christian Borntraeger &lt;borntraeger@de.ibm.com&gt;
</content>
</entry>
</feed>
