From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ling, Xiaofeng" Subject: [PATCH] fix vmx guest creation fail due to vbd connection error detection Date: Wed, 02 Nov 2005 14:44:43 +0800 Message-ID: <4368605B.6070606@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org Changeset 7582 adds vbd connect error detection, this cause vmx guest creation fail. Signed-off-by: Xiaofeng Ling diff -r ae2e13795c63 tools/python/xen/xend/server/DevController.py --- a/tools/python/xen/xend/server/DevController.py Tue Nov 1 19:13:06 2005 +0100 +++ b/tools/python/xen/xend/server/DevController.py Wed Nov 2 14:38:31 2005 +0800 @@ -57,6 +57,8 @@ @return The ID for the newly created device. """ (devid, back, front) = self.getDeviceDetails(config) + if devid == 0: + return devid self.writeDetails(config, devid, back, front)