From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Cornelia Huck <cornelia.huck@de.ibm.com>, qemu-devel@nongnu.org
Cc: jfrei@linux.vnet.ibm.com, agraf@suse.de
Subject: Re: [Qemu-devel] [PATCH for-2.5 3/4] s390x: no deprecation warning while testing
Date: Fri, 27 Nov 2015 12:11:42 +0100 [thread overview]
Message-ID: <56583A6E.2020404@de.ibm.com> (raw)
In-Reply-To: <1448618826-29546-4-git-send-email-cornelia.huck@de.ibm.com>
On 11/27/2015 11:07 AM, Cornelia Huck wrote:
> 'make check' tries to start all available machines; the deprecation
> message for the s390-virtio machine is both useless and annoying
> there. Silence it while testing.
>
> Reported-by: Michael S. Tsirkin <mst@redhat.com>
> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
> ---
> hw/s390x/s390-virtio.c | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/hw/s390x/s390-virtio.c b/hw/s390x/s390-virtio.c
> index 51dc0a8..ae55760 100644
> --- a/hw/s390x/s390-virtio.c
> +++ b/hw/s390x/s390-virtio.c
> @@ -33,6 +33,7 @@
> #include "hw/virtio/virtio.h"
> #include "sysemu/kvm.h"
> #include "exec/address-spaces.h"
> +#include "sysemu/qtest.h"
>
> #include "hw/s390x/s390-virtio-bus.h"
> #include "hw/s390x/sclp.h"
> @@ -268,9 +269,11 @@ static void s390_init(MachineState *machine)
> hwaddr virtio_region_len;
> hwaddr virtio_region_start;
>
> - error_printf("WARNING\n"
> - "The s390-virtio machine (non-ccw) is deprecated.\n"
> - "It will be removed in 2.6. Please use s390-ccw-virtio\n");
> + if (!qtest_enabled()) {
> + error_printf("WARNING\n"
> + "The s390-virtio machine (non-ccw) is deprecated.\n"
> + "It will be removed in 2.6. Please use s390-ccw-virtio\n");
> + }
>
> if (machine->ram_slots) {
> error_report("Memory hotplug not supported by the selected machine.");
>
next prev parent reply other threads:[~2015-11-27 11:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-27 10:07 [Qemu-devel] [PATCH for-2.5 0/4] s390x fixes for 2.5-rc3 Cornelia Huck
2015-11-27 10:07 ` [Qemu-devel] [PATCH for-2.5 1/4] pc-bios/s390-ccw: build for z900 Cornelia Huck
2015-11-27 10:07 ` [Qemu-devel] [PATCH for-2.5 2/4] pc-bios/s390-ccw: rebuild image Cornelia Huck
2015-11-27 10:07 ` [Qemu-devel] [PATCH for-2.5 3/4] s390x: no deprecation warning while testing Cornelia Huck
2015-11-27 11:11 ` Christian Borntraeger [this message]
2015-11-30 11:49 ` Michael S. Tsirkin
2015-11-27 10:07 ` [Qemu-devel] [PATCH for-2.5 4/4] s390x/pci: fix up IOMMU size Cornelia Huck
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=56583A6E.2020404@de.ibm.com \
--to=borntraeger@de.ibm.com \
--cc=agraf@suse.de \
--cc=cornelia.huck@de.ibm.com \
--cc=jfrei@linux.vnet.ibm.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).