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-api

[Xen-API] RE: VM. get allowed VBD devices

To: "'Aggarwal, Ajay'" <Ajay.Aggarwal@xxxxxxxxxxx>, "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] RE: VM. get allowed VBD devices
From: Dave Scott <Dave.Scott@xxxxxxxxxxxxx>
Date: Mon, 16 Nov 2009 22:57:05 +0000
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Mon, 16 Nov 2009 14:57:07 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BC2F8964429F14468EA0E6D6CF00E8C94BD973@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <BC2F8964429F14468EA0E6D6CF00E8C94BD973@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcpnCdGX2zlyJ7LQQRudvHFNCYjBYQABLiHg
Thread-topic: VM. get allowed VBD devices
Hi,

> What exactly is VM. get allowed VBD devices()? What list does it return?

The return value is a list of possible "VBD.userdevice" values: integers from 0 
up to some supported maximum (where the maximum depends on guest type), with 
entries corresponding to existing VBDs removed.

The purpose is to give clients a hint about what "VBD.userdevice" values are 
possible for a given VM configuration.

The supported maximums are hardcoded in ocaml/xapi/xapi_vm_helpers.ml:

let allowed_VBD_devices_HVM    = range_inclusive 0 3
let allowed_VBD_devices_HVM_PP = range_inclusive 0 15
let allowed_VBD_devices_PV     = range_inclusive 0 15
let allowed_VIF_devices_HVM    = range_inclusive 0 3
let allowed_VIF_devices_HVM_PP = range_inclusive 0 6
let allowed_VIF_devices_PV     = range_inclusive 0 6

where "PV" means fully paravirt linux guests; "HVM" means HVM guests with no PV 
drivers; "HVM_PP" means HVM guests with PV drivers.

Note that none of these limits are actually enforced; this is just a hinting 
mechanism.

Cheers,
Dave

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

<Prev in Thread] Current Thread [Next in Thread>