<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/kvm/lib/aarch64, 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-03-16T16:59:11Z</updated>
<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>
<entry>
<title>Merge tag 'kvm-s390-next-5.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into HEAD</title>
<updated>2019-07-15T11:28:58Z</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2019-07-15T10:50:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fd4198bf17ca9321fb8043e846b780cfd2889dac'/>
<id>urn:sha1:fd4198bf17ca9321fb8043e846b780cfd2889dac</id>
<content type='text'>
KVM: s390: add kselftests

This is the initial implementation for KVM selftests on s390.
</content>
</entry>
<entry>
<title>kvm: selftests: introduce aarch64_vcpu_add_default</title>
<updated>2019-06-05T12:14:45Z</updated>
<author>
<name>Andrew Jones</name>
</author>
<published>2019-05-27T14:31:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fb89f4ea7feb1e605f8f405d256c56d8ad69125c'/>
<id>urn:sha1:fb89f4ea7feb1e605f8f405d256c56d8ad69125c</id>
<content type='text'>
This is the same as vm_vcpu_add_default, but it also takes a
kvm_vcpu_init struct pointer.

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 aarch64_vcpu_setup</title>
<updated>2019-06-05T12:13:38Z</updated>
<author>
<name>Andrew Jones</name>
</author>
<published>2019-05-27T14:31:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f5dd4ccf5552d71a817d0ec97481e4a71425a038'/>
<id>urn:sha1:f5dd4ccf5552d71a817d0ec97481e4a71425a038</id>
<content type='text'>
This allows aarch64 tests to run on more targets, such as the Arm
simulator that doesn't like KVM_ARM_TARGET_GENERIC_V8. And it also
allows aarch64 tests to provide vcpu features in struct kvm_vcpu_init.
Additionally it drops the unused memslot parameters.

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