[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/5] xen: drop support for Xen 4.1 and older.
From: |
Stefano Stabellini |
Subject: |
Re: [Qemu-devel] [PATCH 1/5] xen: drop support for Xen 4.1 and older. |
Date: |
Wed, 10 Feb 2016 10:45:54 +0000 |
User-agent: |
Alpine 2.02 (DEB 1266 2009-07-14) |
On Wed, 10 Feb 2016, Ian Campbell wrote:
> On Tue, 2016-02-09 at 16:50 +0000, Stefano Stabellini wrote:
> > > @@ -2218,15 +2127,10 @@ EOF
> > > fi
> > >
> > > if test "$xen_pci_passthrough" != "no"; then
> > > - if test "$xen" = "yes" && test "$linux" = "yes" &&
> > > - test "$xen_ctrl_version" -ge 340; then
> > > + if test "$xen" = "yes" && test "$linux" = "yes"; then
> > > xen_pci_passthrough=yes
> > > else
> > > if test "$xen_pci_passthrough" = "yes"; then
> >
> > Given that the code has been greatly simplified, I think that we can get
> > rid of the test above.
>
> Which one? I think we still need to check for both Linux and Xen being
> present and handle users passing --enable-xen-pci-passthrough when those
> conditions don't hold.
>
> It might be possible to fold the else if, i.e.
>
> if test "$xen_pci_passthrough" != "no"; then
> if test "$xen" = "yes" && test "$linux" = "yes"; then
> xen_pci_passthrough=yes
> elif test "$xen_pci_passthrough" = "yes"; then
> error_exit "User requested feature Xen PCI Passthrough" \
> " but this feature requires /sys from Linux"
> else
> xen_pci_passthrough=no
> fi
> fi
>
> ?
Yeah.. not much of an improvement, sorry, leave it as is.
- [Qemu-devel] [PATCH 0/5] Drop support for Xen 4.1 and older from qemu-xen, Ian Campbell, 2016/02/09
- [Qemu-devel] [PATCH 5/5] xen: Drop __XEN_LATEST_INTERFACE_VERSION__ checks from prior to Xen 4.2, Ian Campbell, 2016/02/09
- [Qemu-devel] [PATCH 2/5] xen: drop xen_xc_hvm_inject_msi wrapper, Ian Campbell, 2016/02/09
- [Qemu-devel] [PATCH 1/5] xen: drop support for Xen 4.1 and older., Ian Campbell, 2016/02/09
- [Qemu-devel] [PATCH 3/5] xen: drop XenXC and associated interface wrappers, Ian Campbell, 2016/02/09
- [Qemu-devel] [PATCH 4/5] xen: move xenforeignmemory compat layer into common place, Ian Campbell, 2016/02/09