Re: [PATCH v2 01/23] MAINTAINERS: Add Connor Kuehl as reviewer for AMD SEV

2021-08-30 Thread Connor Kuehl
On 8/30/21 9:18 AM, Philippe Mathieu-Daudé wrote: >> >> +AMD Secure Encrypted Virtualization (SEV) >> +R: Connor Kuehl > > Is this patch still valid? Thank you for championing it, but due to recent changes, no, it is no longer valid. Thank you, Connor

Re: [PATCH v3 0/2] x86/sev: Measured Linux SEV guest with kernel/initrd/cmdline

2021-07-30 Thread Connor Kuehl
On Fri Jul 30, 2021 at 1:02 PM CDT, Dov Murik wrote: > > > > Awesome! Unfortunately, it's looking like we'll have to wait[1] for QEMU to > > thaw before this series goes in. > > > > Thanks for explaining this. Do I need to do anything after 6.1 is > released? Ping? Rebase and re-send? Rebase and

Re: [PATCH v3 0/2] x86/sev: Measured Linux SEV guest with kernel/initrd/cmdline

2021-07-30 Thread Connor Kuehl
On Thu Jul 29, 2021 at 2:31 PM CDT, Dov Murik wrote: > The OVMF companion series has been reviewed by the new OVMF maintainer > and merged to edk2 master branch as of edk2 commit 514b3aa08ece [1]. > > [1] https://github.com/tianocore/edk2/commit/514b3aa08ece Awesome! Unfortunately, it's looking li

Re: [RFC PATCH v2 11/44] i386/tdx: Implement user specified tsc frequency

2021-07-22 Thread Connor Kuehl
On 7/7/21 7:54 PM, isaku.yamah...@gmail.com wrote: From: Xiaoyao Li Reuse -cpu,tsc-frequency= to get user wanted tsc frequency and pass it to KVM_TDX_INIT_VM. Besides, sanity check the tsc frequency to be in the legal range and legal granularity (required by SEAM module). Signed-off-by: Xiaoy

Re: [RFC PATCH v2 12/44] target/i386/tdx: Finalize the TD's measurement when machine is done

2021-07-22 Thread Connor Kuehl
ood place in the series to update the comment preceding the sev_kvm_init call since TDX is now here and otherwise the comment seems untimely. Reviewed-by: Connor Kuehl

Re: [RFC PATCH v2 06/44] hw/i386: Introduce kvm-type for TDX guest

2021-07-22 Thread Connor Kuehl
On 7/7/21 7:54 PM, isaku.yamah...@gmail.com wrote: From: Xiaoyao Li Introduce a machine property, kvm-type, to allow the user to create a Trusted Domain eXtensions (TDX) VM, a.k.a. a Trusted Domain (TD), e.g.: # $QEMU \ -machine ...,kvm-type=tdx \ ... Only two types are supp

Re: [RFC PATCH v2 09/44] target/i386: kvm: don't synchronize guest tsc for TD guest

2021-07-22 Thread Connor Kuehl
t TSC. Actually do_kvm_synchronize_tsc() hits assert due to failure to write to guest tsc. qemu/target/i386/kvm.c:235: kvm_get_tsc: Assertion `ret == 1' failed. Signed-off-by: Isaku Yamahata Reviewed-by: Connor Kuehl

Re: [RFC PATCH v2 32/44] tdx: add kvm_tdx_enabled() accessor for later use

2021-07-22 Thread Connor Kuehl
On 7/7/21 7:55 PM, isaku.yamah...@gmail.com wrote: From: Isaku Yamahata Signed-off-by: Isaku Yamahata --- include/sysemu/tdx.h | 1 + target/i386/kvm/kvm.c | 5 + 2 files changed, 6 insertions(+) diff --git a/include/sysemu/tdx.h b/include/sysemu/tdx.h index 70eb01348f..f3eced10f9 10

Re: [RFC PATCH v2 34/44] target/i386/tdx: set reboot action to shutdown when tdx

2021-07-22 Thread Connor Kuehl
On 7/7/21 7:55 PM, isaku.yamah...@gmail.com wrote: From: Isaku Yamahata In TDX CPU state is also protected, thus vcpu state can't be reset by VMM. It assumes -action reboot=shutdown instead of silently ignoring vcpu reset. TDX module spec version 344425-002US doesn't support vcpu reset by VMM.

Re: [RFC PATCH v2 04/44] vl: Introduce machine_init_done_late notifier

2021-07-22 Thread Connor Kuehl
On 7/7/21 7:54 PM, isaku.yamah...@gmail.com wrote: From: Isaku Yamahata Introduce a new notifier, machine_init_done_late, that is notified after machine_init_done. This will be used by TDX to generate the HOB for its virtual firmware, which needs to be done after all guest memory has been adde

Re: [RFC PATCH v2 01/44] target/i386: Expose x86_cpu_get_supported_feature_word() for TDX

2021-07-22 Thread Connor Kuehl
: Connor Kuehl

Re: [RFC PATCH v2 02/44] kvm: Switch KVM_CAP_READONLY_MEM to a per-VM ioctl()

2021-07-22 Thread Connor Kuehl
> 0); kvm_eventfds_allowed = (kvm_check_extension(s, KVM_CAP_IOEVENTFD) > 0); Reviewed-by: Connor Kuehl

Re: [PATCH] docs: convert writing-qmp-commands.txt to writing-qmp-commands.rst

2021-07-21 Thread Connor Kuehl
On 7/21/21 11:50 AM, John Snow wrote: This does about the bare minimum, converting section headers to ReST ones and adding an indent for code blocks. Signed-off-by: John Snow --- Looks like ReST! The generated document also looks good to me. Reviewed-by: Connor Kuehl

Re: [RFC PATCH 5/6] i386/sev: add support to encrypt BIOS when SEV-SNP is enabled

2021-07-14 Thread Connor Kuehl
On 7/9/21 3:55 PM, Brijesh Singh wrote: > The KVM_SEV_SNP_LAUNCH_UPDATE command is used for encrypting the bios > image used for booting the SEV-SNP guest. > > Signed-off-by: Brijesh Singh > --- > target/i386/sev.c| 33 - > target/i386/trace-events | 1 +

Re: [PATCH v3 0/2] x86/sev: Measured Linux SEV guest with kernel/initrd/cmdline

2021-07-08 Thread Connor Kuehl
On 7/8/21 10:03 AM, Philippe Mathieu-Daudé wrote: > On 7/8/21 6:41 PM, Connor Kuehl wrote: >> Hi Paolo, >> >> Please consider this series[1] for inclusion into your next pull request. >> >> Just a note that this series has a companion series that is

Re: [PATCH v3 0/2] x86/sev: Measured Linux SEV guest with kernel/initrd/cmdline

2021-07-08 Thread Connor Kuehl
Hi Paolo, Please consider this series[1] for inclusion into your next pull request. Just a note that this series has a companion series that is getting upstreamed into OVMF[2] [1] Patchwork link, if convenient: https://patchwork.kernel.org/project/qemu-devel/cover/20210624102040.2015280-1-dovmu

Re: [PATCH] Fix libpmem configuration option

2021-07-07 Thread Connor Kuehl
> - --enable-libpmem) libpmem=disabled > + --enable-libpmem) libpmem="enabled" > ;; > - --disable-libpmem) libpmem=enabled > + --disable-libpmem) libpmem="disabled" > ;; > --enable-xkbcommon) xkbcommon="enabled" > ;; > -- > 2.27.0 Good catch. Reviewed-by: Connor Kuehl or Tested-by: Connor Kuehl

Re: [PATCH 0/2] numa: Parse initiator= attribute before cpus= attribute

2021-07-07 Thread Connor Kuehl
> hw/core/numa.c | 45 +++-- > 2 files changed, 25 insertions(+), 23 deletions(-) > > -- > 2.31.1 For the series: Reviewed-by: Connor Kuehl

Re: [PATCH] block/rbd: fix type of task->complete

2021-07-07 Thread Connor Kuehl
On 7/7/21 11:04 AM, Peter Lieven wrote: > task->complete is a bool not an integer. > > Signed-off-by: Peter Lieven > --- > block/rbd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/block/rbd.c b/block/rbd.c > index 01a7b94d62..dcf82b15b8 100644 > --- a/block/rbd.c > +

Re: [PATCH 0/2] Remove deprecated qemu-img backing file without format

2021-07-07 Thread Connor Kuehl
082.out | 6 -- > tests/qemu-iotests/114 | 18 > tests/qemu-iotests/114.out | 11 -- > tests/qemu-iotests/301 | 4 +--- > tests/qemu-iotests/301.out | 16 ++ > 12 files changed, 75 insertions(+), 105 deletions(-) > For the series + the squash attached to patch 2: Reviewed-by: Connor Kuehl

Re: Contributions: Adding New Devices

2021-07-01 Thread Connor Kuehl
On 6/30/21 7:01 AM, Federico Vaga wrote: > Hello, > > I can't find this information on the website, so here I am. > > I developed a QEMU device that virtualises a PCI card that we widely use at > CERN. > But this card is only used at CERN. > > Clearly, having CERN specific devices in QEMU does

Re: [PATCH v3 1/2] sev/i386: Introduce sev_add_kernel_loader_hashes for measured linux boot

2021-07-01 Thread Connor Kuehl
sev_encrypt_flash interface, the hashes will be accumulated by the PSP > measurement (SEV_LAUNCH_MEASURE). > > Co-developed-by: James Bottomley > Signed-off-by: James Bottomley > Signed-off-by: Dov Murik > --- Reviewed-by: Connor Kuehl

Re: [PATCH v2 1/2] sev/i386: Introduce sev_add_kernel_loader_hashes for measured linux boot

2021-06-22 Thread Connor Kuehl
On 6/21/21 2:05 PM, Dov Murik wrote: > +static void fill_sev_hash_table_entry(SevHashTableEntry *e, const uint8_t > *guid, > + const uint8_t *hash, size_t hash_len) > +{ > +memcpy(e->guid, guid, sizeof(e->guid)); > +e->len = sizeof(*e); > +memcpy(e-

Re: [PATCH v2 2/2] x86/sev: generate SEV kernel loader hashes in x86_load_linux

2021-06-22 Thread Connor Kuehl
tanding: I'm guessing you didn't set `kernel_loader_context.cmdline_size` to `cmdline_size` (defined above) so guest owners don't have to be aware of whatever alignment precaution QEMU takes when producing their own measurement, right? Otherwise: Reviewed-by: Connor Kuehl

Re: [PATCH 10/11] target/i386/monitor: Move SEV specific commands to sev.c

2021-06-10 Thread Connor Kuehl
On 6/10/21 1:45 AM, Philippe Mathieu-Daudé wrote: > Having the HMP/QMP commands defined in monitor.c makes the stubs > rather complicated when SEV is not built in. To simplify, move the > SEV functions to sev.c, and remove a layer of stubs. > > Also make it clearer when SEV is not built in, so dev

Re: [PATCH 05/11] target/i386/sev_i386.h: Remove unused headers

2021-06-10 Thread Connor Kuehl
On 6/10/21 1:45 AM, Philippe Mathieu-Daudé wrote: > Declarations don't require these headers, remove them. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Connor Kuehl

Re: [PATCH 06/11] target/i386/sev: Remove sev_get_me_mask()

2021-06-10 Thread Connor Kuehl
v_fd < 0) { > Brijesh, do you remember if this was added with the intent that it would be useful in a future series? Otherwise: Reviewed-by: Connor Kuehl

Re: [PATCH 07/11] target/i386/sev: Mark unreachable code with g_assert_not_reached()

2021-06-10 Thread Connor Kuehl
eached() which meaning is clearer. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Connor Kuehl

Re: [PATCH 04/11] target/i386/cpu: Add missing 'qapi/error.h' header

2021-06-10 Thread Connor Kuehl
On 6/10/21 1:45 AM, Philippe Mathieu-Daudé wrote: > Commit 00b81053244 ("target-i386: Remove assert_no_error usage") > forgot to add the "qapi/error.h", add it now. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Connor Kuehl

Re: [PATCH 03/11] target/i386/monitor: Return QMP error when SEV is disabled in build

2021-06-10 Thread Connor Kuehl
; > { "execute": "sev-inject-launch-secret", > "arguments": { "packet-header": "mypkt", "secret": "mypass", "gpa": > 4294959104 } > } > { > "error": { > "class": "GenericError", > "desc": "this feature or command is not currently supported" > } > } > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Connor Kuehl

Re: [PATCH] Add Connor Kuehl as reviewer for AMD SEV

2021-06-08 Thread Connor Kuehl
On 6/8/21 3:45 PM, Daniel P. Berrangé wrote: >> Right, I am just worried that if I am the only person that shows up in >> the get_maintainer.pl output, the submitter will have to know some other >> way who a relevant maintainer is that can take the patches otherwise >> they won't be CC'd. Or we'll

Re: [PATCH] Add Connor Kuehl as reviewer for AMD SEV

2021-06-08 Thread Connor Kuehl
On 6/8/21 2:34 PM, Dr. David Alan Gilbert wrote: >> Note: because there's no maintainer entry, when running >> ./scripts/get_maintainers.pl on target/i386/sev.c, my name and the qemu >> mailing list is the only thing that shows up... it doesn't even show >> previous committers (as it would before a

Re: [PATCH] Add Connor Kuehl as reviewer for AMD SEV

2021-06-08 Thread Connor Kuehl
On 6/8/21 3:10 PM, Daniel P. Berrangé wrote: > On Tue, Jun 08, 2021 at 02:25:37PM -0500, Connor Kuehl wrote: >> It may not be appropriate for me to take over as a maintainer at this time, >> but I would consider myself familiar with AMD SEV and what this code is >> meant to

Re: [PATCH] Add Connor Kuehl as reviewer for AMD SEV

2021-06-08 Thread Connor Kuehl
On 6/8/21 2:25 PM, Connor Kuehl wrote: > It may not be appropriate for me to take over as a maintainer at this time, > but I would consider myself familiar with AMD SEV and what this code is > meant to be doing as part of a VMM for launching SEV-protected guests. > > To that end, I

[PATCH] Add Connor Kuehl as reviewer for AMD SEV

2021-06-08 Thread Connor Kuehl
changes so that I am CC'd on them and can help share the review burden with whoever does maintain this code. Signed-off-by: Connor Kuehl --- Note: because there's no maintainer entry, when running ./scripts/get_maintainers.pl on target/i386/sev.c, my name and the qemu mailing list is the

Re: [Virtio-fs] [PATCH 0/9] virtiofsd: Allow using file handles instead of O_PATH FDs

2021-06-04 Thread Connor Kuehl
| 809 +- > tools/virtiofsd/passthrough_seccomp.c | 2 + > 3 files changed, 667 insertions(+), 147 deletions(-) > For the series: Reviewed-by: Connor Kuehl

Re: [PATCH] sev: sev_get_attestation_report use g_autofree

2021-06-03 Thread Connor Kuehl
On 6/3/21 6:30 AM, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > Removes a whole bunch of g_free's and a goto. > > Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Connor Kuehl

Re: [PATCH v2 1/3] doc: Fix some mistakes in the SEV documentation

2021-06-02 Thread Connor Kuehl
On 4/23/21 3:08 PM, Tom Lendacky wrote: > From: Tom Lendacky > > Fix some spelling and grammar mistakes in the amd-memory-encryption.txt > file. No new information added. > > Signed-off-by: Tom Lendacky For the series: Reviewed-by: Connor Kuehl

Re: [Virtio-fs] [PATCH 7/7] virtiofsd: Set req->reply_sent right after sending reply

2021-05-13 Thread Connor Kuehl
On 5/11/21 4:37 PM, Vivek Goyal wrote: > There is no reason to set it in label "err". We should be able to set > it right after sending reply. It is easier to read. > > Signed-off-by: Vivek Goyal > --- > tools/virtiofsd/fuse_virtio.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) >

Re: [Virtio-fs] [PATCH 0/7] virtiofsd: Few cleanups in virtio_send_data_iov()

2021-05-13 Thread Connor Kuehl
d > virtiofsd: Set req->reply_sent right after sending reply > > tools/virtiofsd/fuse_virtio.c | 67 +++ > 1 file changed, 21 insertions(+), 46 deletions(-) > With the codestyle fix to appease the bot: Reviewed-by: Connor Kuehl (For the series)

Re: [PATCH 1/3] virtiofsd: Find original inode ID of mount points

2021-05-12 Thread Connor Kuehl
de ID for the submount.) > > Signed-off-by: Max Reitz > --- This is a clever way of uncovering the inode ID. Reviewed-by: Connor Kuehl

Re: [PATCH] 9pfs: add link to 9p developer docs

2021-05-11 Thread Connor Kuehl
On 5/6/21 8:12 AM, Christian Schoenebeck wrote: > To lower the entry level for new developers, add a link to the > 9p developer docs (i.e. qemu wiki) at the beginning of 9p source > files, that is to: https://wiki.qemu.org/Documentation/9p > > Signed-off-by: Christian Schoenebeck > --- > hw/9pfs

Re: [PATCH] docs: add table of contents to QAPI references

2021-05-11 Thread Connor Kuehl
ill help people locate stuff much more > easily. > > Signed-off-by: Daniel P. Berrangé > --- This looks so much better! Reviewed-by: Connor Kuehl

Re: [PATCH 0/2] net/tap: minor fixes to interaction with the bridge helper

2021-05-11 Thread Connor Kuehl
> Just a minor question on patch 2. Otherwise, for the series: Reviewed-by: Connor Kuehl

Re: [PATCH 2/2] net/tap: fix error reporting when bridge helper forgets to send an FD

2021-05-11 Thread Connor Kuehl
On 5/5/21 7:12 AM, Daniel P. Berrangé wrote: > [..] > The recv_fd() method returns -1 on error, 0 on end of file, or an FD > $ qemu-system-x86_64 -netdev bridge,br=br99,helper=/bin/true,id=ns0 > qemu-system-x86_64: -netdev bridge,br=br99,helper=/bin/true,id=ns0: > bridge helper did not send

Re: [PATCH v3] target/i386/sev: add support to query the attestation report

2021-05-07 Thread Connor Kuehl
lake > Cc: Paolo Bonzini > Cc: k...@vger.kernel.org > Reviewed-by: James Bottomley > Tested-by: James Bottomley > Signed-off-by: Brijesh Singh Looks good to me! Reviewed-by: Connor Kuehl

[PATCH v3] Document qemu-img options data_file and data_file_raw

2021-05-05 Thread Connor Kuehl
ggested-by: Max Reitz [ Max: provided description of data_file_raw behavior ] Signed-off-by: Connor Kuehl --- John, my apologies, I failed to CC you on my last revision (v2) where I addressed your comments. Changes since v2: * Pulled in Max's explanation of data_file_raw behaviors with

Re: [PATCH v2] Document qemu-img options data_file and data_file_raw

2021-05-03 Thread Connor Kuehl
On 4/30/21 9:45 AM, Max Reitz wrote: >> + ``data_file_raw`` >> +If this option is set to ``on``, QEMU will always keep the external >> +data file consistent as a standalone read-only raw image. It does >> +this by forwarding updates through to the raw image in addition to >> +updat

[PATCH 1/2] [RESEND] sev: use explicit indices for mapping firmware error codes to strings

2021-04-30 Thread Connor Kuehl
This can help lower any margin for error when making future additions to the list, especially if they're made out of order. While doing so, make capitalization of ASID consistent with its usage in the SEV firmware spec (Asid -> ASID). Signed-off-by: Connor Kuehl Reviewed-by: Philippe

[PATCH 0/2] [RESEND] SEV firmware error list touchups

2021-04-30 Thread Connor Kuehl
Connor Kuehl (2): sev: use explicit indices for mapping firmware error codes to strings sev: add missing firmware error conditions target/i386/sev.c | 48 --- 1 file changed, 25 insertions(+), 23 deletions(-) -- 2.30.2

[PATCH v2] Document qemu-img options data_file and data_file_raw

2021-04-30 Thread Connor Kuehl
ned-off-by: Connor Kuehl --- Changes since v1: * Clarify different behaviors with these options when using qemu-img create vs amend (Max) * Touch on the negative case of how the file becomes inconsistent (John) docs/tools/qemu-img.rst | 20 1 file changed, 20

[PATCH 2/2] [RESEND] sev: add missing firmware error conditions

2021-04-30 Thread Connor Kuehl
The SEV userspace header[1] exports a couple of other error conditions that aren't listed in QEMU's SEV implementation, so let's just round out the list. [1] linux-headers/linux/psp-sev.h Signed-off-by: Connor Kuehl Reviewed-by: Philippe Mathieu-Daudé --- target/i386/sev.c

Re: [PATCH v2 1/2] meson: Select 'have_system' when virtiofsd is enabled

2021-04-29 Thread Connor Kuehl
On 4/29/21 3:33 AM, Philippe Mathieu-Daudé wrote: > When not explicitly select a sysemu target and building virtiofsd, > the seccomp/cap-ng libraries are not resolved, leading to this error: > > $ configure --target-list=i386-linux-user --disable-tools --enable-virtiofsd > tools/meson.build:12

Re: [PATCH] tools/meson.build: Error on enabling virtiofsd and have_system is false

2021-04-28 Thread Connor Kuehl
On 4/28/21 9:13 AM, Mahmoud Mandour wrote: >> I am not entirely sure if this is true. The error message before this >> patch is applied is: >> >> ../tools/meson.build:12:6: ERROR: Problem encountered: virtiofsd >> requires libcap-ng-devel and seccomp-devel >> >> From what I know abo

Re: [PATCH] tools/meson.build: Error on enabling virtiofsd and have_system is false

2021-04-28 Thread Connor Kuehl
On 4/28/21 8:35 AM, Mahmoud Mandour wrote: > Previously, on configuring with --enable-virtiofsd and specifying > a target list that does not contain a full-system emulation target, > a spurious error message is emitted. This patch introduces a > meaningful error message for such case. > > Signed-o

[PATCH v4 1/2] iotests/231: Update expected deprecation message

2021-04-21 Thread Connor Kuehl
The deprecation message in the expected output has technically been wrong since the wrong version of a patch was applied to it. Because of this, the test fails. Correct the expected output so that it passes. Signed-off-by: Connor Kuehl Reviewed-by: Max Reitz Reviewed-by: Stefano Garzarella

[PATCH v4 2/2] block/rbd: Add an escape-aware strchr helper

2021-04-21 Thread Connor Kuehl
73913 Signed-off-by: Connor Kuehl --- v3 -> v4: * Replace qemu_rbd_next_tok() seek loop with qemu_rbd_strchr() since they're identical block/rbd.c| 32 +--- tests/qemu-iotests/231 | 4 tests/qemu-iotests/231.out | 3 +++ 3 file

[PATCH v4 0/2] Fix segfault in qemu_rbd_parse_filename

2021-04-21 Thread Connor Kuehl
Connor Kuehl (2): iotests/231: Update expected deprecation message block/rbd: Add an escape-aware strchr helper block/rbd.c| 32 +--- tests/qemu-iotests/231 | 4 tests/qemu-iotests/231.out | 7 --- 3 files changed, 29 insertions

Re: [PATCH v3 2/2] block/rbd: Add an escape-aware strchr helper

2021-04-21 Thread Connor Kuehl
On 4/21/21 6:04 AM, Stefano Garzarella wrote: >> +static char *qemu_rbd_strchr(char *src, char delim) >> +{ >> +char *p; >> + >> +for (p = src; *p; ++p) { >> +if (*p == delim) { >> +return p; >> +} >> +if (*p == '\\' && p[1] != '\0') { >> +++p

Re: [Virtio-fs] [PATCH 2/2] virtiofsd: Add help for -o xattr-mapping

2021-04-19 Thread Connor Kuehl
On 4/19/21 2:07 PM, Vivek Goyal wrote: >> This is a helpful note, but it doesn't tell the whole story. I think >> it'd be helpful to add one last note to this option which is to >> recommend reading the virtiofsd(1) man-page for more information on >> xattrmap rules. > > Is there a virtiofsd man p

Re: [PATCH 0/5] block, migration: improve debugging of migration bdrv_flush failure

2021-04-15 Thread Connor Kuehl
series: Reviewed-by: Connor Kuehl

Re: [PATCH 0/2] virtiofsd: Enable xattr if xattrmap is used

2021-04-14 Thread Connor Kuehl
lp` > output. > > Carlos Venegas (2): > virtiofsd: Allow use "-o xattrmap" without "-o xattr" > virtiofsd: Add help for -o xattr-mapping Good usability improvement. For the series: Reviewed-by: Connor Kuehl

Re: [Virtio-fs] [PATCH 2/2] virtiofsd: Add help for -o xattr-mapping

2021-04-14 Thread Connor Kuehl
On Wed Apr 14, 2021 at 3:12 PM CDT, Carlos Venegas wrote: > The option is not documented in help. > > Add small help about the option. > > Signed-off-by: Carlos Venegas > --- > tools/virtiofsd/helper.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tools/virtiofsd/helper.c b/tools/virt

Re: General question about parsing an rbd filename

2021-04-09 Thread Connor Kuehl
On 4/9/21 9:27 AM, Markus Armbruster wrote: Connor Kuehl writes: block/rbd.c hints that: * Configuration values containing :, @, or = can be escaped with a * leading "\". Right now, much of the parsing code will allow anyone to escape _anything_ so long as it's prece

Re: [PATCH] Document qemu-img options data_file and data_file_raw

2021-04-09 Thread Connor Kuehl
On 3/23/21 6:15 PM, John Snow wrote: On 3/1/21 12:28 PM, Connor Kuehl wrote: [..] diff --git a/docs/tools/qemu-img.rst b/docs/tools/qemu-img.rst index b615aa8419..5cc585dc27 100644 --- a/docs/tools/qemu-img.rst +++ b/docs/tools/qemu-img.rst @@ -866,6 +866,18 @@ Supported image file formats

Re: [PATCH] Document qemu-img options data_file and data_file_raw

2021-04-09 Thread Connor Kuehl
On 3/26/21 4:24 AM, Max Reitz wrote: On 01.03.21 18:28, Connor Kuehl wrote: [..] diff --git a/docs/tools/qemu-img.rst b/docs/tools/qemu-img.rst index b615aa8419..5cc585dc27 100644 --- a/docs/tools/qemu-img.rst +++ b/docs/tools/qemu-img.rst @@ -866,6 +866,18 @@ Supported image file formats

[PATCH v3 0/2] Fix segfault in qemu_rbd_parse_filename

2021-04-09 Thread Connor Kuehl
Connor Kuehl (2): iotests/231: Update expected deprecation message block/rbd: Add an escape-aware strchr helper block/rbd.c| 20 ++-- tests/qemu-iotests/231 | 4 tests/qemu-iotests/231.out | 7 --- 3 files changed, 26 insertions(+), 5 deletions

[PATCH v3 1/2] iotests/231: Update expected deprecation message

2021-04-09 Thread Connor Kuehl
The deprecation message in the expected output has technically been wrong since the wrong version of a patch was applied to it. Because of this, the test fails. Correct the expected output so that it passes. Signed-off-by: Connor Kuehl Reviewed-by: Max Reitz --- tests/qemu-iotests/231.out | 4

[PATCH v3 2/2] block/rbd: Add an escape-aware strchr helper

2021-04-09 Thread Connor Kuehl
trchr to avoid mixing escaped and unescaped string operations. Reported-by: Han Han Fixes: https://bugzilla.redhat.com/1873913 Signed-off-by: Connor Kuehl --- v2 -> v3: * Update qemu_rbd_strchr to only skip if there's a delimiter AND the next character is not the NUL terminator

Re: [PATCH v2 2/2] block/rbd: Add an escape-aware strchr helper

2021-04-09 Thread Connor Kuehl
On 4/6/21 9:24 AM, Max Reitz wrote: On 01.04.21 23:01, Connor Kuehl wrote: [..] diff --git a/block/rbd.c b/block/rbd.c index 9071a00e3f..c0e4d4a952 100644 --- a/block/rbd.c +++ b/block/rbd.c @@ -134,6 +134,22 @@ static char *qemu_rbd_next_tok(char *src, char delim, char **p)   return src

General question about parsing an rbd filename

2021-04-01 Thread Connor Kuehl
Hi, block/rbd.c hints that: * Configuration values containing :, @, or = can be escaped with a * leading "\". Right now, much of the parsing code will allow anyone to escape _anything_ so long as it's preceded by '\'. Is this the intended behavior? Or should the parser be updated to allo

[PATCH v2 2/2] block/rbd: Add an escape-aware strchr helper

2021-04-01 Thread Connor Kuehl
trchr to avoid mixing escaped and unescaped string operations. Reported-by: Han Han Fixes: https://bugzilla.redhat.com/1873913 Signed-off-by: Connor Kuehl --- block/rbd.c| 20 ++-- tests/qemu-iotests/231 | 4 tests/qemu-iotests/231.out | 3 +++ 3 files ch

[PATCH v2 1/2] iotests/231: Update expected deprecation message

2021-04-01 Thread Connor Kuehl
The deprecation message in the expected output has technically been wrong since the wrong version of a patch was applied to it. Because of this, the test fails. Correct the expected output so that it passes. Signed-off-by: Connor Kuehl Reviewed-by: Max Reitz --- Reworded the commit log and

[PATCH v2 0/2] Fix segfault in qemu_rbd_parse_filename

2021-04-01 Thread Connor Kuehl
Replaced the change to qemu_rbd_next_tok with a standalone escape-aware helper for patch 2. Connor Kuehl (2): iotests/231: Update expected deprecation message block/rbd: Add an escape-aware strchr helper block/rbd.c| 20 ++-- tests/qemu-iotests/231 | 4

Re: [PATCH 2/2] block/rbd: Don't unescape in qemu_rbd_next_tok()

2021-04-01 Thread Connor Kuehl
On 4/1/21 12:24 PM, Max Reitz wrote: On 01.04.21 17:52, Connor Kuehl wrote: That's qemu_rbd_unescape()'s job! No need to duplicate the labor. Furthermore, this was causing some confusion in the parsing logic to where the caller might test for the presence of a character to split

Re: [PATCH 1/2] iotests/231: Update expected deprecation message

2021-04-01 Thread Connor Kuehl
On 4/1/21 12:07 PM, Max Reitz wrote: On 01.04.21 18:52, Max Reitz wrote: On 01.04.21 17:52, Connor Kuehl wrote: The deprecation message changed slightly at some point in the past but the expected output wasn't updated along with it; causing it to fail. Fix it, so it passes. Signed-o

[PATCH 1/2] iotests/231: Update expected deprecation message

2021-04-01 Thread Connor Kuehl
The deprecation message changed slightly at some point in the past but the expected output wasn't updated along with it; causing it to fail. Fix it, so it passes. Signed-off-by: Connor Kuehl --- tests/qemu-iotests/231.out | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --

[PATCH 2/2] block/rbd: Don't unescape in qemu_rbd_next_tok()

2021-04-01 Thread Connor Kuehl
e_name: bar and its subordinate parts can be unescaped after tokenization. So, instead of tokenizing *and* escaping all at once, do one before the other to avoid stumbling into a segfault by confusing the parsing logic. Reported-by: Han Han Fixes: https://bugzilla.redhat.com/1873913 Signed-off-by

[PATCH 0/2] Fix segfault in qemu_rbd_parse_filename

2021-04-01 Thread Connor Kuehl
Connor Kuehl (2): iotests/231: Update expected deprecation message block/rbd: Don't unescape in qemu_rbd_next_tok() block/rbd.c| 3 --- tests/qemu-iotests/231 | 4 tests/qemu-iotests/231.out | 7 --- 3 files changed, 8 insertions(+), 6 deletions(-) -- 2.30.2

Re: [Virtio-fs] [PATCH] virtiofsd: Fix security.capability comparison

2021-04-01 Thread Connor Kuehl
curity Fixes: e586edcb41054 ("virtiofs: drop remapped security.capability xattr as needed") Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Connor Kuehl --- tools/virtiofsd/passthrough_ll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/virtiofsd

Re: [PATCH 0/2] SEV firmware error list touchups

2021-03-22 Thread Connor Kuehl
On 3/22/21 5:18 AM, Philippe Mathieu-Daudé wrote: Hi Connor, On 3/15/21 3:08 PM, Connor Kuehl wrote: On 2/18/21 9:16 AM, Connor Kuehl wrote: Connor Kuehl (2):    sev: use explicit indices for mapping firmware error codes to strings    sev: add missing firmware error conditions   target

[PATCH 0/1] iotests: fix 051.out expected output after error

2021-03-18 Thread Connor Kuehl
Oops, sorry about the churn. I can see why this would have caused a failure but I'm surprised I can't reproduce this when I run the test locally. Christian, would you be willing to test this patch out as a quick sanity check too? Connor Kuehl (1): iotests: fix 051.out expected ou

[PATCH 1/1] iotests: fix 051.out expected output after error text touchups

2021-03-18 Thread Connor Kuehl
s pertaining to 'node-name'") Signed-off-by: Connor Kuehl --- tests/qemu-iotests/051.out | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/qemu-iotests/051.out b/tests/qemu-iotests/051.out index de4771bcb3..db8c14b903 100644 --- a/tests/qemu-iotests/051.ou

[PATCH] MAINTAINERS: add virtio-fs mailing list

2021-03-18 Thread Connor Kuehl
General discussion and patch reviews take place on this list for both virtiofsd (tools/virtiofsd/*) and the guest kernel module. Signed-off-by: Connor Kuehl --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 25fc49d1dc..8921bc2119 100644 --- a

Re: [PATCH] tools/virtiofsd: include --socket-group in help

2021-03-18 Thread Connor Kuehl
patches the last place it was missing from, nice! Reviewed-by: Connor Kuehl

Re: [PATCH 0/2] SEV firmware error list touchups

2021-03-15 Thread Connor Kuehl
On 2/18/21 9:16 AM, Connor Kuehl wrote: Connor Kuehl (2): sev: use explicit indices for mapping firmware error codes to strings sev: add missing firmware error conditions target/i386/sev.c | 48 --- 1 file changed, 25 insertions(+), 23

Re: [PATCH] Document qemu-img options data_file and data_file_raw

2021-03-15 Thread Connor Kuehl
Ping (+Kevin Wolf to CC) Kevin, would this be appropriate for your tree? On 3/1/21 11:28 AM, Connor Kuehl wrote: The contents of this patch were initially developed and posted by Han Han[1], however, it appears the original patch was not applied. Since then, the relevant documentation has been

Re: [Virtio-fs] [PATCH 3/3] virtiofsd: Don't allow empty filenames

2021-03-12 Thread Connor Kuehl
3.html#tag_03_170 [2] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13 Signed-off-by: Greg Kurz Reviewed-by: Connor Kuehl

Re: [Virtio-fs] [PATCH 1/3] virtiofsd: Don't allow empty paths in lookup_name()

2021-03-12 Thread Connor Kuehl
to pull off making an entry with an empty name However, I don't know if there will one day be future callers to lo_do_lookup() that will depend on that flag. If the answer to the above is no, then: Reviewed-by: Connor Kuehl

Re: [Virtio-fs] [PATCH 2/3] virtiofsd: Convert some functions to return bool

2021-03-12 Thread Connor Kuehl
/* Is `path` a single path component that is not "." or ".."? */ -static int is_safe_path_component(const char *path) +static bool is_safe_path_component(const char *path) { if (strchr(path, '/')) { -return 0; + return false; } return !is_dot_or_dotdot(path); Reviewed-by: Connor Kuehl

Re: [PATCH] Document qemu-img options data_file and data_file_raw

2021-03-08 Thread Connor Kuehl
On 3/1/21 11:28 AM, Connor Kuehl wrote: The contents of this patch were initially developed and posted by Han Han[1], however, it appears the original patch was not applied. Since then, the relevant documentation has been moved and adapted to a new format. I've taken most of the ori

Re: [PATCH 0/2] SEV firmware error list touchups

2021-03-08 Thread Connor Kuehl
On 2/18/21 9:16 AM, Connor Kuehl wrote: Connor Kuehl (2): sev: use explicit indices for mapping firmware error codes to strings sev: add missing firmware error conditions target/i386/sev.c | 48 --- 1 file changed, 25 insertions(+), 23

[PATCH v2 2/2] blockdev: Clarify error messages pertaining to 'node-name'

2021-03-05 Thread Connor Kuehl
Signed-off-by: Connor Kuehl --- blockdev.c | 13 +++-- tests/qemu-iotests/245 | 6 +++--- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/blockdev.c b/blockdev.c index cd438e60e3..7c7ab2b386 100644 --- a/blockdev.c +++ b/blockdev.c @@ -1515,13 +1515,13

[PATCH v2 0/2] Clarify error messages pertaining to 'node-name'

2021-03-05 Thread Connor Kuehl
v2: - Moved summary into patch #1 - Updated test cases that were missed in v1 from running 'make check'. This time I used 'make check-block SPEED=thorough' and some more grepping to make sure I didn't miss any. - Rebased Connor Kuehl (2): block: Clarify

[PATCH v2 1/2] block: Clarify error messages pertaining to 'node-name'

2021-03-05 Thread Connor Kuehl
nderscore is actually incorrect, the parameter should be 'node-name': S: {"error": {"class": "GenericError", "desc": "Parameter 'node_name' is unexpected"}} This behavior was uncovered in bz1651437, but I ended up going down a

Re: [PATCH 0/2] Clarify error messages pertaining to 'node-name'

2021-03-03 Thread Connor Kuehl
On 3/3/21 3:53 AM, Kevin Wolf wrote: Am 02.03.2021 um 00:36 hat Connor Kuehl geschrieben: Some error messages contain ambiguous representations of the 'node-name' parameter. This can be particularly confusing when exchanging QMP messages (C = client, S = server): C: {"execute&

[PATCH 2/2] blockdev: Clarify error messages pertaining to 'node-name'

2021-03-01 Thread Connor Kuehl
Signed-off-by: Connor Kuehl --- blockdev.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/blockdev.c b/blockdev.c index cd438e60e3..7c7ab2b386 100644 --- a/blockdev.c +++ b/blockdev.c @@ -1515,13 +1515,13 @@ static void external_snapshot_prepare(BlkActionState

[PATCH 0/2] Clarify error messages pertaining to 'node-name'

2021-03-01 Thread Connor Kuehl
nderscore is actually incorrect, the parameter should be 'node-name': S: {"error": {"class": "GenericError", "desc": "Parameter 'node_name' is unexpected"}} This behavior was uncovered in bz1651437[1], but I ended up going down a

[PATCH 1/2] block: Clarify error messages pertaining to 'node-name'

2021-03-01 Thread Connor Kuehl
Reported-by: Tingting Mao Fixes: https://bugzilla.redhat.com/1651437 Signed-off-by: Connor Kuehl --- block.c| 8 tests/qemu-iotests/040 | 4 ++-- tests/qemu-iotests/249.out | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/block.c b/block.c

[PATCH] Document qemu-img options data_file and data_file_raw

2021-03-01 Thread Connor Kuehl
xes: https://bugzilla.redhat.com/1763105 Signed-off-by: Connor Kuehl --- docs/tools/qemu-img.rst | 12 1 file changed, 12 insertions(+) diff --git a/docs/tools/qemu-img.rst b/docs/tools/qemu-img.rst index b615aa8419..5cc585dc27 100644 --- a/docs/tools/qemu-img.rst +++ b/docs/tools/qemu-img.rst @@ -866

  1   2   >