From: Anthony PERARD <anthony.perard@citrix.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org,
Stefano Stabellini <sstabellini@kernel.org>,
xen-devel@lists.xenproject.org
Subject: Re: [Qemu-devel] [PATCH] pci-assign: Remove
Date: Wed, 25 Oct 2017 11:52:35 +0100 [thread overview]
Message-ID: <20171025105235.GI1885@perard.uk.xensource.com> (raw)
In-Reply-To: <20171020082538.17124-1-pbonzini@redhat.com>
On Fri, Oct 20, 2017 at 10:25:38AM +0200, Paolo Bonzini wrote:
> Legacy PCI device assignment has been removed from Linux in 4.12,
> and had been deprecated 2 years ago there. We can remove it from
> QEMU as well.
>
> The ROM loading code was shared with Xen PCI passthrough, so move
> it to hw/xen.
>
> Cc: Stefano Stabellini <sstabellini@kernel.org>
> Cc: Anthony Perard <anthony.perard@citrix.com>
> Cc: xen-devel@lists.xenproject.org
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> Xen parts only compile-tested.
>
> docs/qdev-device-use.txt | 12 +-
> hw/i386/Makefile.objs | 1 -
> hw/i386/kvm/Makefile.objs | 2 +-
> hw/i386/kvm/pci-assign.c | 1883 --------------------
> hw/xen/Makefile.objs | 1 +
> .../xen_pt_load_rom.c} | 4 +-
> include/hw/pci/pci-assign.h | 27 -
> qdev-monitor.c | 1 -
> scripts/device-crash-test | 2 -
> 9 files changed, 6 insertions(+), 1927 deletions(-)
> delete mode 100644 hw/i386/kvm/pci-assign.c
> rename hw/{i386/pci-assign-load-rom.c => xen/xen_pt_load_rom.c} (96%)
> delete mode 100644 include/hw/pci/pci-assign.h
>
> diff --git a/hw/i386/pci-assign-load-rom.c b/hw/xen/xen_pt_load_rom.c
> similarity index 96%
> rename from hw/i386/pci-assign-load-rom.c
> rename to hw/xen/xen_pt_load_rom.c
> index 43429b66be..2bc3b6c092 100644
> --- a/hw/i386/pci-assign-load-rom.c
> +++ b/hw/xen/xen_pt_load_rom.c
> @@ -12,7 +12,7 @@
> #include "qemu/range.h"
> #include "sysemu/sysemu.h"
> #include "hw/pci/pci.h"
> -#include "hw/pci/pci-assign.h"
> +#include "xen_pt.h"
>
> /*
> * Scan the assigned devices for the devices that have an option ROM, and then
> @@ -80,7 +80,7 @@ close_rom:
> fseek(fp, 0, SEEK_SET);
> val = 0;
> if (!fwrite(&val, 1, 1, fp)) {
> - DEBUG("%s\n", "Failed to disable pci-sysfs rom file");
> + XEN_PT_WARN("%s\n", "Failed to disable pci-sysfs rom file");
XEN_PT_WARN takes an extra argument, it should read:
XEN_PT_WARN(dev, "%s\n", "Failed to disable pci-sysfs rom file");
With that fixed:
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
--
Anthony PERARD
next prev parent reply other threads:[~2017-10-25 10:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-20 8:25 [Qemu-devel] [PATCH] pci-assign: Remove Paolo Bonzini
2017-10-25 10:52 ` Anthony PERARD [this message]
2017-10-25 14:05 ` Philippe Mathieu-Daudé
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=20171025105235.GI1885@perard.uk.xensource.com \
--to=anthony.perard@citrix.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.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).