The progress in Nahanni

Now I can start the vms with the parameter ioeventfd=on, but interrupts can not perform successfully.
(   I install the qemu by using source code  qemu-1.5.1.tar.bz2    downloaded form  http://wiki.qemu.org/Download . Its version is still 1.0,
but it is the newest release version.  I am failed to install the newest version from  http://git.qemu.org/qemu.git )

Details:
1 start up ivshmem_server
./ivshmem_server -m 256 /tmp/ivshmem_socket -n dynamo

2 start up vm A

sudo /usr/local/qemu/bin/qemu-system-x86_64 -m 1204 -hda /home/xzl/virtual_machine/ubuntu-12.04-amd64-test-one.img -localtime -net nic,vlan=0,macaddr=52-54-00-12-34-0,model=virtio -net tap,vlan=0,ifname=tap0,script=no -boot c -smp 2 -chardev socket,path=/tmp/ivshmem_socket,id=foo -device ivshmem,chardev=foo,size=256,ioeventfd=on


3 start up vm B

sudo /usr/local/qemu/bin/qemu-system-x86_64 -m 1204 -hda /home/xzl/virtual_machine/ubuntu-12.04-amd64-test-two.img -localtime -net nic,vlan=0,macaddr=52-54-00-12-34-2,model=virtio -net tap,vlan=0,ifname=tap1,script=no -boot c -smp 2 -chardev socket,path=/tmp/ivshmem_socket,id=foo -device ivshmem,chardev=foo,size=256,ioeventfd=on

Tests:
In machine A.

xzl@xzl-test-first-vm:~/Nahanni/tests/uio/tests/Interrupts/VM$  sudo ./getident /dev/uio0
ID is 0
exiting
xzl@xzl-test-first-vm:~/Nahanni/tests/uio/tests/Interrupts/VM$  sudo ./uio_read /dev/uio0 1
[UIO] opening file /dev/uio0
[UIO] reading


In machine B.

xzl@xzl-test-second-vm:~/Nahanni/tests/uio/tests/Interrupts/VM$  sudo ./uio_send /dev/uio0 1 SEMA_IRQS 0
[UIO] opening file /dev/uio0
[UIO] count is 1
[UIO] writing 0
[UIO] ping #0
[UIO] Exiting...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值