[Qemu-devel] [Bug 1712027] Re: qemu: Cryptography adding encrypted disk with luks format failed

2017-08-24 Thread Huang Yong
If the alg is GCRY_CIPHER_AES256 and length of data to be encrypted is multiple of 16 (16/32/48...),the length of encryted data is equal to the raw data. There is no padding and the bug is triggerd. -- You received this bug notification because you are a member of qemu- devel-ml, which is

[Qemu-devel] [Bug 1712027] [NEW] qemu: Cryptography adding encrypted disk with luks format failed

2017-08-21 Thread Huang Yong
Public bug reported: I'm using libvirt to attach luks encrypted disk to a running VM. The qemu-monitor-command like the following: {"execute":"object-add","arguments":{"qom-type":"secret","id":"virtio- disk11-luks-

[Qemu-devel] [PATCH] QEMU Guest Agent: Add an interface to determine guest os type

2017-04-12 Thread Huang Yong
vm management tools (e.g.libvirt) may tell if guest os is linux or windows, so they can design a customized application accordingly, we suggest to add an interface (guest-ostype) in QEMU. Signed-off-by: Huang Yong <huang.y...@zte.com.cn> --- qga/commands-posix.c | 10 ++ qga/co

[Qemu-devel] [PATCH] Main loop: Register a specific IO port to monitor guest linux os crash event

2017-04-11 Thread Huang Yong
will be inserted in VM. When guest linux os crash, kprobe hooks write IO port mentioned above to notify qemu. With this approach, VM management component (e.g.libvirt) can monitor VM running state in time. Signed-off-by: Huang Yong<huang.y...@zte.com.cn> --- vl.