WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] [PATCH] Improve error message when HVM domain creation

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH] Improve error message when HVM domain creation failed
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Wed, 21 Mar 2007 20:05:05 +0900
Delivery-date: Wed, 21 Mar 2007 04:04:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

Currently, when VHPT or vTLB are not able to allocate to HVM 
domain, the xm create command shows the following error message 
because the return value of vmx_final_setup_guest() is -1(EPREM).

# xm create /xen/HVMdomain.1
Using config file "/xen/HVMdomain.1".
Error: (1, 'Operation not permitted')


This patch changes the return value of the following functions 
to -12(ENOMEM). Therefore the error message is changed to 
"Cannot allocate memory". 

 - vmx_final_setup_guest()
 - init_domain_tlb()
 - init_domain_vhpt()

# xm create /xen/HVMdomain.1
Using config file "/xen/HVMdomain.1".
Error: (12, 'Cannot allocate memory')


Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: improve_error_message.patch
Description: Binary data

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>