From nobody Sun Feb 8 05:34:56 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1641395233; cv=none; d=zohomail.com; s=zohoarc; b=HeG/ABZfDQ0gsHyhNCjuRlYEKy7jQ2sv0pBwU5l4uCTGgBc3rXOujpT0Qs6pvbfYj+a4uzFkwwuJs7Fuwz5h8ecW25rk+s44BJfJ8o/5ERWYPJ7tewMpIJi4pDWnZisiKVGuoW0iUzClacjMSfHo8gcGqwWMZJ1OMqfWsbqiPEI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1641395233; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=wLG0XovTKnaLzmIcYzJrH5sZpz8Irc1iRbNdEBaKKWo=; b=HkDRAmumqx4C7eUbVDseHFm0H6nTC6IqCbGcsxto4hr7ht8cqr8Is9k/dm7Mv2ZSfsIsulLrBV4+S1MtkHLV85T0Sz3ON6tB2kc91ubaZkr3USWps0TeXm+DCuudOY1PwHA4wJL9CNRNbnktdMVvF8k9RQWlJf9WuT6gCN2Orsk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1641395233492709.1543977114633; Wed, 5 Jan 2022 07:07:13 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-500-auUJkZsGMhG3Fni0yO3qKw-1; Wed, 05 Jan 2022 10:07:09 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 71DAF80D6BA; Wed, 5 Jan 2022 15:07:00 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 29F8573150; Wed, 5 Jan 2022 15:07:00 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 4C7D11809CB9; Wed, 5 Jan 2022 15:06:58 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 205F6uFH027696 for ; Wed, 5 Jan 2022 10:06:57 -0500 Received: by smtp.corp.redhat.com (Postfix) id 27DF68D5A7; Wed, 5 Jan 2022 15:06:56 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.40.193.78]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2A31B73175 for ; Wed, 5 Jan 2022 15:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1641395231; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=wLG0XovTKnaLzmIcYzJrH5sZpz8Irc1iRbNdEBaKKWo=; b=VLgIToBHWA6/fWxkM6E1iZDC+AvbkQiZ2UbdCCDplthCVViKsoRkYG7k/Op4Ua+vufcZ1Q /7T28oYeFsjWk+Btw3MElMgvay5dU/uTiGlyeeZMzqeTAEupLY324jIgAjriihJI42m34F Vdsofbq+tI5oH1s/OA390ag58D3dkd8= X-MC-Unique: auUJkZsGMhG3Fni0yO3qKw-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH 2/2] qemu: virtiofs: add (no_)killpriv_v2 support Date: Wed, 5 Jan 2022 16:06:50 +0100 Message-Id: <4afba0e503eff6ed78d29b3fe175fac810c88482.1641395187.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1641395235193100004 https://bugzilla.redhat.com/show_bug.cgi?id=3D1972571 Signed-off-by: J=C3=A1n Tomko --- src/qemu/qemu_virtiofs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/qemu/qemu_virtiofs.c b/src/qemu/qemu_virtiofs.c index 1b853a5a59..c89da76c27 100644 --- a/src/qemu/qemu_virtiofs.c +++ b/src/qemu/qemu_virtiofs.c @@ -162,6 +162,11 @@ qemuVirtioFSBuildCommandLine(virQEMUDriverConfig *cfg, else if (fs->posix_lock =3D=3D VIR_TRISTATE_SWITCH_OFF) virBufferAddLit(&opts, ",no_posix_lock"); =20 + if (fs->killpriv_v2 =3D=3D VIR_TRISTATE_SWITCH_ON) + virBufferAddLit(&opts, ",killpriv_v2"); + else if (fs->killpriv_v2 =3D=3D VIR_TRISTATE_SWITCH_OFF) + virBufferAddLit(&opts, ",no_killpriv_v2"); + virCommandAddArgBuffer(cmd, &opts); if (cfg->virtiofsdDebug) virCommandAddArg(cmd, "-d"); --=20 2.31.1