From: Ian Jackson Subject: Re: [PATCH for-4.6] libxl: handle read-only drives with qemu-xen Date: Mon, 14 Sep 2015 11:18:58 +0100 Message-ID: <22006.40722.144046.994936@mariner.uk.xensource.com> References: <1441990829-18122-1-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZbQqk-0006DI-Ju for xen-devel@lists.xenproject.org; Mon, 14 Sep 2015 10:19:02 +0000 In-Reply-To: <1441990829-18122-1-git-send-email-stefano.stabellini@eu.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: Stefano Stabellini Cc: Ian.Campbell@eu.citrix.com, xen-devel@lists.xenproject.org, wei.liu2@citrix.com, Ian.Jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org Stefano Stabellini writes ("[PATCH for-4.6] libxl: handle read-only drives with qemu-xen"): > The current libxl code doesn't deal with read-only drives at all. > > Upstream QEMU and qemu-xen only support read-only cdrom drives: make > sure to specify "readonly=on" for cdrom drives and return error in case > the user requested a non-cdrom read-only drive. This should have: * an XSA * a credit > + if (!disks[i].readwrite) { > + LIBXL__LOG(ctx, LIBXL__LOG_ERROR, "QEMU doesn't support read-only disk drivers"); > + return ERROR_INVAL; This message should refer to `qemu-xen' specifically. The user can get the desired behaviour by going back to qemu-xen-traditional... Ian.