All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Bader <stefan.bader@canonical.com>
To: Alex Bligh <alex@alex.org.uk>
Cc: xen-devel@lists.xensource.com,
	Ian Campbell <Ian.Campbell@citrix.com>,
	Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>
Subject: Re: Xen 4.x / Linux 3.x (dom0 and HVM domU) and	NIC handling
Date: Mon, 05 Dec 2011 15:55:49 +0100	[thread overview]
Message-ID: <4EDCDB75.6010403@canonical.com> (raw)
In-Reply-To: <8D88C4D6C31A598129A942AD@Ximines.local>

On 02.12.2011 18:16, Alex Bligh wrote:
> 
> 
> --On 2 December 2011 16:40:48 +0000 Ian Campbell <Ian.Campbell@citrix.com> wrote:
> 
>>> AFAIK changing xen_platform_pci=0|1 will switch rather more than just
>>> the NIC. It will switch your disk too, instantly causing your previously
>>> happily booting OS to fail to boot as the root device name changes.
>>
>> We recommend you use "root=LABEL=foo" rather than "root=/dev/blah" for
>> this reason. Fortunately most distros use that scheme by default these
>> days.
> 
> Yes; and /etc/fstab. UUID= works too.
> 
> FWIW my experience is that various built-for-cloud type distros don't use
> that scheme, mainly because they use grub1 which IIRC does not support
> this, and building images in a non-root environment that have grub1
> in is rather easier than grub2. So, for instance, all the vm-builder
> stuff in debian/ubuntu used grub1 and did not work this way.
> 
> However, my point was that xen_platform_pci does not only change
> whether your net driver is emulated or PVHVM, but also whether your
> disk, and indeed everything else is emulated or PVHVM.
> 
I can understand a policy of using the pv devices whenever it is possible. The
change of the device name is there but as pointed out most distro installations
try to avoid those anyway since there is a similar problem with usb keys or
drives potentially moving around. Same for network devices that get mapped based
on mac address.
Not sure how real the need for a mixed setup is. If, then I can see that it gets
a bit weird. While you can use xen_emul_unplug with other keywords to prevent
unplugging disks or nics. But that would not remove the related pv devices. And
I am not sure whether this would be a desired behavior or actually be feasible
in a clean layered way. Personally I would think nobody could want both
interfaces at the same time but I would not assume I know all of the use cases.

-Stefan

  parent reply	other threads:[~2011-12-05 14:55 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-01 15:09 Xen 4.x / Linux 3.x (dom0 and HVM domU) and NIC handling Stefan Bader
2011-12-01 16:03 ` Ian Campbell
2011-12-01 17:47   ` Stefan Bader
2011-12-02 10:15     ` Ian Campbell
2011-12-01 18:09 ` Pasi Kärkkäinen
2011-12-02 10:09   ` Ian Campbell
2011-12-02 10:11   ` Stefan Bader
2011-12-02 10:41     ` Pasi Kärkkäinen
2011-12-02 16:36       ` Alex Bligh
2011-12-02 16:40         ` Ian Campbell
2011-12-02 17:16           ` Alex Bligh
2011-12-02 17:42             ` Ian Campbell
2011-12-02 18:32               ` Alex Bligh
2011-12-03 10:44                 ` Ian Campbell
2011-12-05 15:03                   ` Stefan Bader
2011-12-06 22:35                     ` Alex Bligh
2011-12-05 14:55             ` Stefan Bader [this message]
2011-12-05 16:10               ` Ian Campbell
2011-12-06 22:37                 ` Alex Bligh
2011-12-06 22:32               ` Alex Bligh
2011-12-02 21:49           ` Pasi Kärkkäinen
2011-12-05 14:33       ` Stefan Bader
2011-12-05 14:39         ` Stefano Stabellini

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=4EDCDB75.6010403@canonical.com \
    --to=stefan.bader@canonical.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Stefano.Stabellini@eu.citrix.com \
    --cc=alex@alex.org.uk \
    --cc=xen-devel@lists.xensource.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 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.