随笔分类 -  qemu

上一页 1 2 3 4 下一页

vhost + qemu-system-aarch64
摘要:/usr/libexec/qemu-kvm -h $ /path/to/aarch64-softmmu/qemu-system-aarch64 \ -machine virt \ -cpu cortex-a57 \ -nographic -smp 1 \ -hda /path/to/rootfs.e 阅读全文

posted @ 2020-11-04 14:26 tycoon3 阅读(520) 评论(0) 推荐(0)

qemu-system-aarch64: -enable-kvm: No machine specified, and there is no default Use -machine help to list supported machines
摘要:$ qemu-system-aarch64 -M help akita Sharp SL-C1000 (Akita) PDA (PXA270) ... z2 Zipit Z2 (PXA27x) $ qemu-system-aarch64 -M virt -cpu help arm1026 ... t 阅读全文

posted @ 2020-11-04 14:21 tycoon3 阅读(4672) 评论(0) 推荐(0)

cannot undefine domain with nvram
摘要:[root@localhost ~]# virsh undefine vhuser-test1error: Failed to undefine domain vhuser-test1error: Requested operation is not valid: cannot undefine d 阅读全文

posted @ 2020-11-04 11:30 tycoon3 阅读(1664) 评论(0) 推荐(0)

socat - UNIX-CONNECT:/tmp/vhost-user1
摘要:socat - UNIX-CONNECT:/tmp/vhost-user1 阅读全文

posted @ 2020-11-04 11:02 tycoon3 阅读(268) 评论(0) 推荐(0)

qemu-system-aarch64
摘要:[root@localhost ~]# ps -elf | grep qemu 6 S root 49878 1 0 80 0 - 6068 poll_s 22:00 ? 00:00:00 /usr/libexec/qemu-kvm -name guest=vhuser-test1,debug-th 阅读全文

posted @ 2020-11-04 10:10 tycoon3 阅读(1108) 评论(0) 推荐(0)

kvm虚拟化
摘要:[root@localhost cloud_images]# qemu-system-aarch64 -smp 8 -m 8192 -cpu host -M virt -nographic -drive file=vhuser-test1.qcow2,id=hd0 -device virtio-bl 阅读全文

posted @ 2020-11-04 09:55 tycoon3 阅读(444) 评论(0) 推荐(0)

qemu vcpu
摘要:ps -eLo ruser,pid,ppid,lwp,psr,args | awk '{if($5==3) print $0}' 还是借助于ps指令 :ps -eLo ruser,pid,ppid,lwp,psr| awk ‘{if($5==1) print $0}’。解释为:ps命令显示当前系统的 阅读全文

posted @ 2020-11-03 10:25 tycoon3 阅读(323) 评论(0) 推荐(0)

vhost源码 + vhost_dev_init
摘要:virtqueue 是 Guest操作系统内存的一部分,用作Guest和Host的数据传输缓存。Host可以在Userspace实现(QEMU),也可以在内核态实现(vHost)。 比如,物理网卡收到发往虚拟机的数据包后,将其转发到对应的TAP设备。Qemu中TAP设备分为后端驱动和TAP设备关联, 阅读全文

posted @ 2020-10-26 11:57 tycoon3 阅读(582) 评论(0) 推荐(0)

virtio event fd + 中断 前后端通信机制 +class_init {vhost worker方式}(二)
摘要:1. set_guest_notifiers初始化流程 static void virtio_pci_bus_class_init(ObjectClass *klass, void *data){ k->set_guest_notifiers = virtio_pci_set_guest_notif 阅读全文

posted @ 2020-10-24 17:29 tycoon3 阅读(1385) 评论(0) 推荐(0)

virtio event fd + 中断 前后端通信机制 +class_init {非vhost}方式(一)
摘要:https://kernelgo.org/virtio-overview.html http://lihanlu.cn/virtio-frontend-kick/ Qemu Vhost Block架构分析 https://blog.csdn.net/u012377031/article/detail 阅读全文

posted @ 2020-10-24 16:24 tycoon3 阅读(2935) 评论(1) 推荐(0)

virtiofsd unix socket
摘要:https://www.cnblogs.com/yi-mu-xi/p/12923523.html vhost_user_backend_init() ........ vhost_setup_slave_channel(dev) ......... qemu_set_fd_handler(u->sl 阅读全文

posted @ 2020-10-24 12:53 tycoon3 阅读(267) 评论(0) 推荐(0)

guest侧virtio probe + qemu侧 vhost_dev_init + kernel vhost + vhost user +unix域套接字
摘要:guest侧virtio probe https://www.jianshu.com/p/e4b29d16bae4 https://kernelgo.org/virtio-overview.html https://blog.csdn.net/qq_15437629/article/details/ 阅读全文

posted @ 2020-10-24 10:51 tycoon3 阅读(437) 评论(0) 推荐(0)

virtiofsd
摘要:virtio-fs介绍 在guest之间共享文件系统的方案 virtio-fs把文件mmap进qemu的进程地址空间并让不同guest使用DAX访问该内存空间 DAX数据访问和元数据的共享内存访问都是通过共享内存的方式避免不必要的VM/hypervisor之间通信(在元数据没有改变的情况下) Kat 阅读全文

posted @ 2020-10-24 10:16 tycoon3 阅读(1501) 评论(0) 推荐(0)

qemu vhost_net + vhost_dev_init
摘要:https://blog.csdn.net/qq_20817327/article/details/106655151 net/tap.c static void net_init_tap_one { 699 vhostfd = open("/dev/vhost-net", O_RDWR); 700 阅读全文

posted @ 2020-10-24 10:04 tycoon3 阅读(277) 评论(0) 推荐(0)

virtio-vsock
摘要:virtio-vsock virtio-vsock provides a way for applications running on a guest VM and the host system to communicate with each other using the standard 阅读全文

posted @ 2020-10-24 09:42 tycoon3 阅读(909) 评论(0) 推荐(0)

VIRTIO & VHOST
摘要:[root@x86compute01 ~]# ps aux | grep vhost 64055 3950 3.3 0.0 5996552 208716 ? Sl 4月22 8799:09 /usr/bin/qemu-system-x86_64 -name guest=instance-000030 阅读全文

posted @ 2020-10-24 09:18 tycoon3 阅读(492) 评论(0) 推荐(0)

nc-vsock unix域套接字
摘要:https://github.com/stefanha/nc-vsock/blob/master/nc-vsock.c Skip to content Search or jump to… Pull requests Issues Marketplace Explore @magnate3 Lear 阅读全文

posted @ 2020-10-23 20:18 tycoon3 阅读(426) 评论(0) 推荐(0)

Virtio-vsock Device + aF_UNIX 套接字通信
摘要:irtio是Linux虚拟机平台上统一的虚拟IO接口驱动。通常主机为了让客户机像在真实环境中一样运行,需要为客户机创建各式各样的虚拟设备,如磁盘,网卡,显卡,时钟,USB 等。这些虚拟设备大大降低了客户机的性能。使用virtio。虚拟机guest不用关注如何创建各种虚拟硬件设备(如磁盘,网卡,显卡等 阅读全文

posted @ 2020-10-23 20:15 tycoon3 阅读(2673) 评论(0) 推荐(0)

Using the Firecracker Virtio-vsock Device + F_UNIX 套接字通信
摘要:https://github.com/firecracker-microvm/firecracker/blob/master/docs/vsock.md Firecracker 仅仅实现了以下功能: 基于 VirtIO 的网络,磁盘和套接字驱动(virtio-net,virtio-blk,virti 阅读全文

posted @ 2020-10-23 20:06 tycoon3 阅读(639) 评论(0) 推荐(0)

vhost-user
摘要:https://www.cnblogs.com/bakari/p/8421743.html 什么是 vhost-user 在 vhost 的方案中,由于 vhost 实现在内核中,guest 与 vhost 的通信,相较于原生的 virtio 方式性能上有了一定程度的提升,从 guest 到 kvm 阅读全文

posted @ 2020-10-23 20:00 tycoon3 阅读(372) 评论(0) 推荐(0)

上一页 1 2 3 4 下一页

导航