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

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

To: "Dave Scott" <Dave.Scott@xxxxxxxxxxxxx>, <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-API] RE: VM. get allowed VBD devices
From: "Aggarwal, Ajay" <Ajay.Aggarwal@xxxxxxxxxxx>
Date: Wed, 18 Nov 2009 17:38:07 -0500
Cc:
Delivery-date: Wed, 18 Nov 2009 14:38:09 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: 81A73678E76EA642801C8F2E4823AD2143B74F1519@xxxxxxxxxxxxxxxxxxxxxxxxx
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> 81A73678E76EA642801C8F2E4823AD2143B74F1519@xxxxxxxxxxxxxxxxxxxxxxxxx
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcpnCdGX2zlyJ7LQQRudvHFNCYjBYQABLiHgAGQ+LOA=
Thread-topic: [Xen-API] RE: VM. get allowed VBD devices
Thanks Dave. And I am assuming same goes for
VM.get_allowed_VIF_devices()

-----Original Message-----
From: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-api-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Dave Scott
Sent: Monday, November 16, 2009 5:57 PM
To: Aggarwal, Ajay; xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] RE: 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

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

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