xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Roger Pau Monne <roger.pau@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH 11/13] libxl: set nic type to VIF by default
Date: Wed, 30 May 2012 13:03:52 +0100	[thread overview]
Message-ID: <4FC60CA8.4090404@citrix.com> (raw)
In-Reply-To: <1338302817.14158.120.camel@zakaz.uk.xensource.com>

Ian Campbell wrote:
> On Tue, 2012-05-29 at 15:40 +0100, Ian Jackson wrote:
>> Roger Pau Monne writes ("Re: [PATCH 11/13] libxl: set nic type to VIF by default"):
>>> Ian Jackson wrote:
>>>> Roger Pau Monne writes ("[PATCH 11/13] libxl: set nic type to VIF by default"):
>>>>> -        nic->nictype = LIBXL_NIC_TYPE_IOEMU;
>>>>> +        nic->nictype = LIBXL_NIC_TYPE_VIF;
>>>> But doesn't this set the default type to VIF even for HVM guests ?
>>> Shouldn't HVM guests use the "ioemu" parameter if they want an emulated
>>> card? If no parameter is provided then the default type should be VIF,
>>> because there's no other way to specifically set the type to VIF.
>> Sorry.  I seem to have failed to reply to this.
>>
>> I'm a bit confused about all this, I confess.  What does xend do ?
>>
>> ATM it seems that this change would mean that a guest config file
>> specified in the most obvious way wouldn't get an emulated nic at
>> all.  That can't be right, can it ?
>
> It's confusingly named.
>
> IOEMU ->  emulated only on HVM, meaningless on PV.

My understanding was that IOEMU meant both TAP and PV, and was only 
valid for HVM guests, and VIF meant PV only and was valid for both 
domain types?

I don't think this is right, this will mean VIF has a different meaning 
depending on the type of domain, which is quite annoying.

If this is right, I have to change my hotplug patches, but this will be 
a mess, because I have no way to tell if a domain is PV or HVM when 
plugging in the devices, so if VIF is passed for both PV or PV+TAP I 
will have no way of knowing that.

Should we create three different nic types? VIF (PV), IOEMU (TAP), 
HYBRID (PV+TAP)?

> VIF   ->  both emulated and PV (on HVM) or just PV (on PV)
>
> So a default of "VIF" is what you normally want.
>
> Ian.
>

  parent reply	other threads:[~2012-05-30 12:03 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-16 16:11 [PATCH 0/13] execute hotplug scripts from libxl Roger Pau Monne
2012-05-16 16:11 ` [PATCH 01/13] libxl: pass env vars to libxl__exec Roger Pau Monne
2012-05-18 16:02   ` Ian Jackson
2012-05-16 16:11 ` [PATCH 02/13] libxl: fix libxl__xs_directory usage of transaction Roger Pau Monne
2012-05-18 16:03   ` Ian Jackson
2012-05-16 16:11 ` [PATCH 03/13] libxl: add libxl__xs_path_cleanup Roger Pau Monne
2012-05-18 16:06   ` Ian Jackson
2012-05-16 16:11 ` [PATCH 04/13] libxl: move libxl_device_disk_add to libxl_device Roger Pau Monne
2012-05-16 16:11 ` [PATCH 05/13] libxl: move libxl_device_nic_add " Roger Pau Monne
2012-05-16 16:11 ` [PATCH 06/13] libxl: cleanup libxl__device_{disk, nic}_add Roger Pau Monne
2012-05-18 16:07   ` Ian Jackson
2012-05-16 16:11 ` [PATCH 07/13] libxl: convert libxl_domain_destroy to an AO op Roger Pau Monne
2012-05-18 16:19   ` Ian Jackson
2012-05-18 16:24   ` Ian Jackson
2012-05-16 16:11 ` [PATCH 08/13] libxl: convert libxl_device_disk_add to an async operation Roger Pau Monne
2012-05-18 16:33   ` Ian Jackson
2012-05-16 16:11 ` [PATCH 09/13] libxl: convert libxl_device_nic_add " Roger Pau Monne
2012-05-18 16:38   ` Ian Jackson
2012-05-22 13:49     ` Roger Pau Monne
2012-05-22 14:04       ` Ian Jackson
2012-05-16 16:11 ` [PATCH 10/13] libxl: add option to choose who executes hotplug scripts Roger Pau Monne
2012-05-18 16:40   ` Ian Jackson
2012-05-16 16:11 ` [PATCH 11/13] libxl: set nic type to VIF by default Roger Pau Monne
2012-05-18 16:41   ` Ian Jackson
2012-05-21 16:29     ` Roger Pau Monne
2012-05-29 14:40       ` Ian Jackson
2012-05-29 14:46         ` Ian Campbell
2012-05-29 15:02           ` Ian Jackson
2012-05-29 15:06             ` Ian Campbell
2012-05-30 12:03           ` Roger Pau Monne [this message]
2012-06-07 14:30             ` Ian Jackson
2012-06-11 14:05               ` Roger Pau Monne
2012-05-16 16:11 ` [PATCH 12/13] libxl: call hotplug scripts for disk devices from libxl Roger Pau Monne
2012-05-18 16:51   ` Ian Jackson
2012-05-16 16:11 ` [PATCH 13/13] libxl: call hotplug scripts for nic " Roger Pau Monne

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=4FC60CA8.4090404@citrix.com \
    --to=roger.pau@citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=xen-devel@lists.xen.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).