From: Vincent Hanquez Date: Thu, 30 Jul 2009 20:44:13 +0000 (+0100) Subject: fill the front and back table with the minimum items when creating the Vfb device... X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=327d06d4bb0278378a5931af4599f329d0e148e7;p=xenclient%2Ftoolstack.git fill the front and back table with the minimum items when creating the Vfb device in xenstore --- diff --git a/xenops/device.ml b/xenops/device.ml index deb7cba..8670b1e 100644 --- a/xenops/device.ml +++ b/xenops/device.ml @@ -1048,8 +1048,14 @@ let add ~xc ~xs ~hvm domid = let backend = frontend in let device = { backend = backend; frontend = frontend } in - let back = [] in - let front = [] in + let back = [ + "frontend-id", sprintf "%u" domid; + "state", string_of_int (Xenbus.int_of Xenbus.Initialising); + ] in + let front = [ + "backend-id", string_of_int 0; + "state", string_of_int (Xenbus.int_of Xenbus.Initialising); + ] in Generic.add_device ~xs device back front; ()