Hi all,

this is an incomplete patch series to allow testing QEMU with the new
xsrestrict option
(http://marc.info/?l=qemu-devel&m=143317363104584&w=2). I use it
together with the attached script to start multiple QEMUs, one is the
regular QEMU device model for hvm guests, the other provides the PV
backends.


Stefano Stabellini (2):
      libxl: allow /local/domain/0/device-model/$DOMID to be written by $DOMID
      libxl: do not add a vkb backend to hvm guests

 tools/libxl/libxl_create.c |    5 -----
 tools/libxl/libxl_dm.c     |    7 ++++++-
 2 files changed, 6 insertions(+), 6 deletions(-)


Cheers,

Stefano
#!/bin/bash

function cleanup() {
    kill -9 $PID1 $PID2
}

flag=0
for i in $*
do
    if [[ $flag -eq 1 ]]
    then
        domid=$i
        break
    fi
    if [[ "$i" == "-xen-domid" ]]
    then
        flag=1
    fi
done

trap cleanup SIGINT SIGTERM

/usr/lib/xen/bin/qemu-system-i386 -xen-domid $domid -xen-attach -display none 
-nographic -machine xenpv &> /tmp/pvqemu.log &
PID1=$!
/usr/lib/xen/bin/qemu-system-i386 $* -xenopts xsrestrict=on &
PID2=$!

while :
do
    sleep 60
done
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to