[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 1/5] xen: drop support for Xen 4.1 and older.



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.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.