#!/bin/bash

/home/kashyapc/tinker-space/qemu-upstream/x86_64-softmmu/qemu-system-x86_64 \
    -machine accel=kvm \
    -name cirrvm \
    -S \
    -machine pc-i440fx-2.1,accel=kvm,usb=off \
    -cpu SandyBridge \
    -m 2048 \
    -realtime mlock=off \
    -smp 1,sockets=1,cores=1,threads=1 \
    -uuid ec9714ed-b23b-4580-99c6-b2862a5bea21 \
    -nographic \
    -no-user-config \
    -nodefaults \
    -chardev socket,id=charmonitor,path=/home/kashyapc/work/virt/qemu/incremental-backup-test-qemu/tests/full_backup.monitor,server,nowait \
    -mon chardev=charmonitor,id=monitor,mode=control \
    -rtc base=utc,driftfix=slew \
    -global kvm-pit.lost_tick_policy=discard \
    -no-hpet \
    -no-shutdown \
    -boot strict=on \
    -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x3.0x7 \
    -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x3 \
    -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x3.0x1 \
    -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x3.0x2 \
    -drive file=/home/kashyapc/work/virt/qemu/incremental-backup-test-qemu/tests/full_backup.img,if=none,id=drive-ide0-0-0,format=qcow2 \
    -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 \
    -chardev pty,id=charserial0 \
    -device isa-serial,chardev=charserial0,id=serial0 \
    -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 \
    -msg timestamp=on \
    -qmp tcp:localhost:4444,server
