From: John Rousseau <jrrousseau@gmail.com>
To: Mark McLoughlin <markmc@redhat.com>
Cc: Avi Kivity <avi@redhat.com>, kvm@vger.kernel.org
Subject: Re: [PATCH 06/12] kvm: qemu: device-assignment: cleanup irq assignment error messages
Date: Fri, 28 Nov 2008 14:05:00 -0500 [thread overview]
Message-ID: <493040DC.4010102@gmail.com> (raw)
In-Reply-To: <1227892250-14386-6-git-send-email-markmc@redhat.com>
Mark McLoughlin wrote:
> Replace perror() usage with sane error message.
>
> Signed-off-by: Mark McLoughlin <markmc@redhat.com>
> ---
> qemu/hw/device-assignment.c | 7 ++++---
> 1 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/qemu/hw/device-assignment.c b/qemu/hw/device-assignment.c
> index 2b2ef68..b39617a 100644
> --- a/qemu/hw/device-assignment.c
> +++ b/qemu/hw/device-assignment.c
> @@ -473,9 +473,10 @@ void assigned_dev_update_irq(PCIDevice *d)
> assigned_irq_data.host_irq = assigned_dev->real_device.irq;
> r = kvm_assign_irq(kvm_context, &assigned_irq_data);
> if (r < 0) {
> - perror("assigned_dev_update_irq");
> - fprintf(stderr, "Are you assigning a device "
> - "that shares IRQ with some other device?\n");
> + fprintf(stderr, "Failed to assign irq for \"%s\": %s\n",
> + adev->name, strerror(-r));
> + fprintf(stderr, "Perhaps you re you assigning a device "
Typo.
> + "that shares IRQ with another device?\n");
> pci_unregister_device(&assigned_dev->dev);
> /* FIXME: Delete node from list */
> continue;
-John
next prev parent reply other threads:[~2008-11-28 19:05 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-28 17:10 [PATCH 01/12] kvm: qemu: device-assignment: add_assigned_device() returns a pointer Mark McLoughlin
2008-11-28 17:10 ` [PATCH 02/12] kvm: qemu: device-assignment: introduce add_assigned_devices() Mark McLoughlin
2008-11-28 17:10 ` [PATCH 03/12] kvm: qemu: device-assignment: exit if cmdline parsing fails Mark McLoughlin
2008-11-28 17:10 ` [PATCH 04/12] kvm: qemu: device-assignment: unregister device if assignment fails Mark McLoughlin
2008-11-28 17:10 ` [PATCH 05/12] kvm: qemu: device-assignment: fixup error reporting Mark McLoughlin
2008-11-28 17:10 ` [PATCH 06/12] kvm: qemu: device-assignment: cleanup irq assignment error messages Mark McLoughlin
2008-11-28 17:10 ` [PATCH 07/12] kvm: qemu: device-assignment: remove device if irq assignment fails Mark McLoughlin
2008-11-28 17:10 ` [PATCH 08/12] kvm: qemu: device-assignment: introduce free_assigned_device() Mark McLoughlin
2008-11-28 17:10 ` [PATCH 09/12] kvm: qemu: device-assignment: free device if hotplug fails Mark McLoughlin
2008-11-28 17:10 ` [PATCH 10/12] kvm: qemu: device-assignment: close PCIDevRegions::config_fd Mark McLoughlin
2008-11-28 17:10 ` [PATCH 11/12] kvm: qemu: device-assignment: munmap() mmio regions Mark McLoughlin
2008-11-28 17:10 ` [PATCH 12/12] kvm: qemu: device-assignment: init_assigned_device() error handling Mark McLoughlin
2008-11-28 19:05 ` John Rousseau [this message]
2008-11-30 10:47 ` [PATCH 06/12] kvm: qemu: device-assignment: cleanup irq assignment error messages Avi Kivity
2008-12-10 10:23 ` [PATCH] kvm: qemu: device-assignment: really exit if cmdline parsing fails Mark McLoughlin
2008-12-10 10:28 ` Avi Kivity
2008-11-28 17:14 ` [PATCH 01/12] kvm: qemu: device-assignment: add_assigned_device() returns a pointer Mark McLoughlin
2008-11-30 10:42 ` Avi Kivity
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=493040DC.4010102@gmail.com \
--to=jrrousseau@gmail.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=markmc@redhat.com \
/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).