From: Ian Jackson Subject: Re: [PATCH v10 13/19] libxl: set correct nic type depending on the guest Date: Fri, 20 Jul 2012 19:06:37 +0100 Message-ID: <20489.40493.329771.542355@mariner.uk.xensource.com> References: <1342793548-10239-1-git-send-email-roger.pau@citrix.com> <1342793548-10239-14-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1342793548-10239-14-git-send-email-roger.pau@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roger Pau Monne Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Roger Pau Monne writes ("[PATCH v10 13/19] libxl: set correct nic type depending on the guest"): > Fix the use of nic type, which results in the following for each type > of domain: ...> > * HVM: let the user choose, if none specified use VIF_IOEMU. > * PV: use VIF always. I think attempts by the user to use VIF_IOEMU with a PV domain should be rejected with ERROR_INVAL, not silently ignored. > -int libxl__device_nic_setdefault(libxl__gc *gc, libxl_device_nic *nic) > +int libxl__device_nic_setdefault(libxl__gc *gc, libxl_device_nic *nic, > + uint32_t domid) ... > + case LIBXL_DOMAIN_TYPE_PV: > + nic->nictype = LIBXL_NIC_TYPE_VIF; > + break; Somewhere here. Thanks, Ian.