From 327d06d4bb0278378a5931af4599f329d0e148e7 Mon Sep 17 00:00:00 2001 From: Vincent Hanquez Date: Thu, 30 Jul 2009 21:44:13 +0100 Subject: [PATCH] fill the front and back table with the minimum items when creating the Vfb device in xenstore --- xenops/device.ml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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; () -- 2.39.5