All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cornelia Huck <cohuck@redhat.com>
To: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: qemu-devel <qemu-devel@nongnu.org>,
	Alexander Graf <agraf@suse.de>,
	Richard Henderson <rth@twiddle.net>,
	Halil Pasic <pasic@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH 3/7] s390x: fix error propagation in kvm-flic's realize
Date: Tue, 4 Jul 2017 16:31:03 +0200	[thread overview]
Message-ID: <20170704163103.4d6670a9@dhcp-192-215.str.redhat.com> (raw)
In-Reply-To: <1499177279-131407-4-git-send-email-borntraeger@de.ibm.com>

On Tue,  4 Jul 2017 16:07:55 +0200
Christian Borntraeger <borntraeger@de.ibm.com> wrote:

> From: Halil Pasic <pasic@linux.vnet.ibm.com>
> 
> From the moment it was introduced by commit a2875e6f98 ("s390x/kvm:
> implement floating-interrupt controller device", 2013-07-16) the kvm-flic
> is not making realize fail properly in case it's impossible to create the
> KVM device which basically serves as a backend and is absolutely
> essential for having an operational kvm-flic.
> 
> Let's fix this by making sure we do proper error propagation in realize.
> 
> Signed-off-by: Halil Pasic <pasic@linux.vnet.ibm.com>
> Fixes: a2875e6f98 "s390x/kvm: implement floating-interrupt controller device"
> Reviewed-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
> Reviewed-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com>
> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
> ---
>  hw/intc/s390_flic_kvm.c | 14 +++++++++++---
>  1 file changed, 11 insertions(+), 3 deletions(-)
> 

(...)

>      cd.type = KVM_DEV_TYPE_FLIC;
>      ret = kvm_vm_ioctl(kvm_state, KVM_CREATE_DEVICE, &cd);
>      if (ret < 0) {
> -        trace_flic_create_device(errno);
> -        return;
> +        error_setg_errno(&errp_local, errno, "Creating the KVM device failed");
> +        trace_flic_no_device_api(errno);

Err... this should still be trace_flic_create_device(), no?

> +        goto fail;
>      }
>      flic_state->fd = cd.fd;

  reply	other threads:[~2017-07-04 14:31 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-04 14:07 [Qemu-devel] [PATCH 0/7] s390x/kvm: pending patches Christian Borntraeger
2017-07-04 14:07 ` [Qemu-devel] [PATCH 1/7] s390x: vmstatify config migration for virtio-ccw Christian Borntraeger
2017-07-04 14:07 ` [Qemu-devel] [PATCH 2/7] s390x/3270: fix instruction interception handler Christian Borntraeger
2017-07-04 14:24   ` Cornelia Huck
2017-07-04 14:07 ` [Qemu-devel] [PATCH 3/7] s390x: fix error propagation in kvm-flic's realize Christian Borntraeger
2017-07-04 14:31   ` Cornelia Huck [this message]
2017-07-04 14:46     ` Halil Pasic
2017-07-04 15:08       ` Halil Pasic
2017-07-04 16:59         ` Cornelia Huck
2017-07-04 17:40           ` Christian Borntraeger
2017-07-05 13:54             ` [Qemu-devel] [PATCH 1/1] s390x: fixup for "fix error propagation in kvm-flic..." Halil Pasic
2017-07-05 15:29               ` Cornelia Huck
2017-07-05 16:27                 ` Christian Borntraeger
2017-07-05 17:16                   ` Halil Pasic
2017-07-04 14:07 ` [Qemu-devel] [PATCH 4/7] s390x: fix realize inheritance for kvm-flic Christian Borntraeger
2017-07-04 14:37   ` Cornelia Huck
2017-07-04 14:51     ` Halil Pasic
2017-07-05 10:20       ` Christian Borntraeger
2017-07-05 10:28         ` Halil Pasic
2017-07-05 11:11         ` Cornelia Huck
2017-07-05 11:16           ` Cornelia Huck
2017-07-04 14:07 ` [Qemu-devel] [PATCH 5/7] s390x/MAINTAINERS: Update my email address Christian Borntraeger
2017-07-04 14:07 ` [Qemu-devel] [PATCH 6/7] s390x: return unavailable features via query-cpu-definitions Christian Borntraeger
2017-07-04 14:40   ` Cornelia Huck
2017-07-04 14:07 ` [Qemu-devel] [PATCH 7/7] virtio-scsi-ccw: use ioeventfd even when KVM is disabled Christian Borntraeger

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=20170704163103.4d6670a9@dhcp-192-215.str.redhat.com \
    --to=cohuck@redhat.com \
    --cc=agraf@suse.de \
    --cc=borntraeger@de.ibm.com \
    --cc=pasic@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.