qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: Eduardo Habkost <ehabkost@redhat.com>, qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>, Igor Mammedov <imammedo@redhat.com>
Subject: Re: [Qemu-devel] [PATCH for-2.4 v5 0/7] Target-specific unit test support, add unit tests for target-i386/cpu.c code
Date: Wed, 08 Apr 2015 15:06:41 +0200	[thread overview]
Message-ID: <552527E1.3010604@suse.de> (raw)
In-Reply-To: <1427139432-27530-1-git-send-email-ehabkost@redhat.com>

Am 23.03.2015 um 20:37 schrieb Eduardo Habkost:
> Changes v4 -> v5:
>  * Rewrite fake kvm_arch_get_supported_cpuid() code
>  * Add new test to ensure KVM defaults won't override explicit command-line
>    options
> 
> Changes v3 -> v4:
>  * Move target_words_bigendian() prototype back inside tests/x86-stub.c.
> 
> Changes v2 -> v3:
>  * Extra KVM "host" CPU model test cases
>  * Move target_words_bigendian() prototype to exec-all.h
> 
> Changes v1 -> v2:
>  * Make dependency list of test binary much simpler, now that cpus.o
>    was removed.

I don't recall seeing the previous four versions of this... I think
adding unit tests for whole devices is the wrong approach. We had that
discussion for tmp105. Instead, using the QTest framework - be it
extending my pc-cpu-test or adding a new one - allows to reuse the
device infrastructure in-place in the actual executable without the need
for stubs and without risking to break the test suite by forgetting to
run make check after device changes or forcing work duplication onto others.

Specifically, you added properties to allow inspection of CPUID feature
bits that - as I understood - today no one (including libvirt) is using.

Regards,
Andreas

> Eduardo Habkost (7):
>   tests: Support target-specific unit tests
>   tests: Make test-x86-cpuid target-specific
>   tests: Add unit test for X86CPU code
>   target-i386: Isolate enabled-by-default features to a separate array
>   tests: test-x86-cpu: Add TCG feature bit initialization test
>   tests: test-x86-cpu: Add KVM feature bit initialization test
>   tests: test-x86-cpu: Ensure that -cpu override KVM-specific defaults
> 
>  target-i386/cpu.c    |  12 ++-
>  tests/.gitignore     |   1 +
>  tests/Makefile       |  49 +++++++++---
>  tests/test-x86-cpu.c | 208 +++++++++++++++++++++++++++++++++++++++++++++++++++
>  tests/vl-stub.c      |  15 ++++
>  tests/x86-stub.c     | 165 ++++++++++++++++++++++++++++++++++++++++
>  6 files changed, 437 insertions(+), 13 deletions(-)
>  create mode 100644 tests/test-x86-cpu.c
>  create mode 100644 tests/vl-stub.c
>  create mode 100644 tests/x86-stub.c

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu,
Graham Norton; HRB 21284 (AG Nürnberg)

  parent reply	other threads:[~2015-04-08 13:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-23 19:37 [Qemu-devel] [PATCH for-2.4 v5 0/7] Target-specific unit test support, add unit tests for target-i386/cpu.c code Eduardo Habkost
2015-03-23 19:37 ` [Qemu-devel] [PATCH for-2.4 v5 1/7] tests: Support target-specific unit tests Eduardo Habkost
2015-03-23 19:37 ` [Qemu-devel] [PATCH for-2.4 v5 2/7] tests: Make test-x86-cpuid target-specific Eduardo Habkost
2015-03-23 19:37 ` [Qemu-devel] [PATCH for-2.4 v5 3/7] tests: Add unit test for X86CPU code Eduardo Habkost
2015-03-23 19:37 ` [Qemu-devel] [PATCH for-2.4 v5 4/7] target-i386: Isolate enabled-by-default features to a separate array Eduardo Habkost
2015-03-23 19:37 ` [Qemu-devel] [PATCH for-2.4 v5 5/7] tests: test-x86-cpu: Add TCG feature bit initialization test Eduardo Habkost
2015-03-23 19:37 ` [Qemu-devel] [PATCH for-2.4 v5 6/7] tests: test-x86-cpu: Add KVM " Eduardo Habkost
2015-03-23 19:37 ` [Qemu-devel] [PATCH for-2.4 v5 7/7] tests: test-x86-cpu: Ensure that -cpu override KVM-specific defaults Eduardo Habkost
2015-04-08 13:06 ` Andreas Färber [this message]
2015-04-08 13:42   ` [Qemu-devel] [PATCH for-2.4 v5 0/7] Target-specific unit test support, add unit tests for target-i386/cpu.c code Eduardo Habkost
2015-04-08 14:05     ` Andreas Färber
2015-04-08 14:57       ` Eduardo Habkost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=552527E1.3010604@suse.de \
    --to=afaerber@suse.de \
    --cc=ehabkost@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).