Re: [PATCH] blockdev: add 'media=cdrom' argument to support usb cdrom emulated as cdrom

2022-12-08 Thread Zhipeng Lu
b-bot only allows one disk attached to it so it's easier to make it a element. Paolo Il sab 3 dic 2022, 13:52 Zhipeng Lu <mailto:luzhip...@cestc.cn>> ha scritto: Could you give the detail qemu cmdline about usb-bot? 在 2022/12/2 17:40, Paolo Bonzini 写道: > On 12/2

Re: [PATCH] blockdev: add 'media=cdrom' argument to support usb cdrom emulated as cdrom

2022-12-03 Thread Zhipeng Lu
Could you give the detail qemu cmdline about usb-bot? 在 2022/12/2 17:40, Paolo Bonzini 写道: On 12/2/22 03:26, Zhipeng Lu wrote: NAME  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT sda 8:0    0  100M  1 disk vda   252:0    0   10G  0 disk ├─vda1    252:1    0    1G  0 part

Re: [PATCH] blockdev: add 'media=cdrom' argument to support usb cdrom emulated as cdrom

2022-12-01 Thread Zhipeng Lu
disk vda 252:00 10G 0 disk ├─vda1252:101G 0 part /boot └─vda2 252:209G 0 part ├─rhel-root 253:008G 0 lvm / └─rhel-swap 253:101G 0 lvm [SWAP] lshw -short|grep cdrom -i No cdrom. My patch is to solve this problem, usb cdrom em

[Qemu-devel] [PATCH v2] qga: replace GetIfEntry

2017-11-03 Thread ZhiPeng Lu
The data obtained by GetIfEntry is 32 bits, and it may overflow. Thus using GetIfEntry2 instead of GetIfEntry. Signed-off-by: ZhiPeng Lu --- qga/commands-win32.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/qga/commands-win32.c b/qga

[Qemu-devel] [PATCH v2] net: add print link status of nic in print_net_client function

2017-11-03 Thread ZhiPeng Lu
We can directly know the information of vm by executing "info network" command, including the link state of nics, without executing other commands again. Signed-off-by: ZhiPeng Lu Reviewed-by: Jiyun Fan Reviewed-by: Philippe Mathieu-Daudé --- v2: correct commit messages --- net

[Qemu-devel] [PATCH] net: add print link status of nics in print_net_client function

2017-10-19 Thread ZhiPeng Lu
We can directly know the information of vm by executing "info network" command, including the link state of nics, without excuting other commands again. Signed-off-by: ZhiPeng Lu Reviewed-by: Jiyun Fan --- net/net.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff -

[Qemu-devel] [PATCH v7 RESEND] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-09-12 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu --- v1->v2: - correct some spelling mistake and add the stats data to the guest-netw

[Qemu-devel] [PATCH v7 RESEND] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-09-11 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu v1->v2: - correct some spelling mistake and add the stats data to the guest-network-

[Qemu-devel] [PATCH] vhost: don't set vring call fd to -1 in vhost_virtqueue_start for vhost-user

2017-08-20 Thread ZhiPeng Lu
witch port status is down by executing the command "ovs-vsctl list interface" in host of running the guest. The network is ok if it doesn't set vring call fd to -1 in vhost_virtqueue_start. The patch doesn't set vring call fd to -1 for vhost-user. Signed-off-by: ZhiPeng Lu --- hw/

[Qemu-devel] [PATCH] fsdev: fix memory leak in main()

2017-07-26 Thread ZhiPeng Lu
@rpath and @ sock_name are not freed and leaked. Signed-off-by: Zhipeng Lu lu.zhip...@zte.com.cn --- fsdev/virtfs-proxy-helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c index 6c066ec..8e48500 100644 --- a/fsdev/virtfs-proxy

[Qemu-devel] [PATCH v7] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-07-20 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu v1->v2: - correct some spelling mistake and add the stats data to the guest-network-

[Qemu-devel] [PATCH] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-07-20 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu v1->v2: - correct some spelling mistake and add the stats data to the guest-network-

[Qemu-devel] [PATCH v6] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-07-19 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu v1->v2: - correct some spelling mistake and add the stats data to the guest-network-

[Qemu-devel] [PATCH] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-07-19 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu --- qga/commands-posix.c | 72 +++- qga/qapi

[Qemu-devel] [PATCH RESEND v6] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-07-04 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu --- qga/commands-posix.c | 80 +++- qga/qapi

[Qemu-devel] [PATCH RESEND v6] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-05-12 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu Signed-off-by: Daniel P. Berrange --- qga/commands-posix.c | 80

[Qemu-devel] [PATCH] hmp: add 'info virtio-pci-status id' command

2017-05-01 Thread ZhiPeng Lu
and 3 --hmp "info virtio-pci-status usb" the 'info virtio_pci_status' command only supports virtio pci devices Signed-off-by: ZhiPeng Lu --- hmp-commands-info.hx| 14 ++ hw/pci/pci-stub.c | 6 ++ hw/virtio/virtio-pci.c | 47 ++

[Qemu-devel] [PATCH v6] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-04-27 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu Signed-off-by: Daniel P. Berrange --- qga/commands-posix.c | 80

[Qemu-devel] [PATCH v5] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-04-27 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu Signed-off-by: Daniel P. Berrange --- qga/commands-posix.c | 68

[Qemu-devel] [PATCH v4] qga: Add support network interface statistics in

2017-04-24 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu Signed-off-by: Daniel P. Berrange --- qga/commands-posix.c | 71

[Qemu-devel] [PATCH v3] qga: Add support network interface statistics in

2017-04-21 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu Signed-off-by: Daniel P. Berrange --- qga/commands-posix.c | 71

[Qemu-devel] [PATCH v3] qga: Add support network interface statistics in

2017-04-21 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu Signed-off-by: Daniel P. Berrange --- qga/commands-posix.c | 71

[Qemu-devel] [PATCH] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-04-20 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very userful for us to monitor and analyze network traff. Signed-off-by: ZhiPeng Lu Signed-off-by: DanielP.Berrange Reviewed-by: EricBlake --- qga/commands-posix.c | 73

[Qemu-devel] [PATCH v2] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-04-20 Thread ZhiPeng Lu
we can get the network inetrface statistics inside a virtual machine by guest-network-get-interfaces command. it is very userful for us to monitor and analyze network traff. Signed-off-by: ZhiPeng Lu Signed-off-by: DanielP.Berrange Reviewed-by: EricBlake --- qga/commands-posix.c | 73

[Qemu-devel] [PATCH] qemu-ga: add guest-network-get-interface-stat command

2017-04-19 Thread ZhiPeng Lu
we can get the network card statistics inside a virtual machine by guest-network-get-interface-stat command. it is very userful for us to monitor and analyze network traff. Signed-off-by: ZhiPeng Lu --- qga/commands-posix.c | 166 ++- qga

[Qemu-devel] [PATCH] vhost: skip RAM device memory sections

2017-04-07 Thread ZhiPeng Lu
n does not exist.So let's just skip RAM device memory. Signed-off-by: ZhiPeng Lu --- hw/virtio/vhost.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index 613494d..c1ff98f 100644 --- a/hw/virtio/vhost.c +++ b/hw/virtio/vhost.c @