From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E786745DC9; Fri, 29 Nov 2024 09:08:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D2612402AE; Fri, 29 Nov 2024 09:08:09 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 032224014F for ; Fri, 29 Nov 2024 09:08:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1732867687; h=from:from: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; bh=k0vbRCH75XvLIRFaXCL4e+YVgnnVtdrT3b8vHouOoHw=; b=GxVQVpwPURNgNlho5bZE//Pf8M82f10UH8R06PRaHADxIW51bR5soUZMnBvrvbUrmSeEqi dcmQY0QQb58uCkJGHIXKuWCktgz0+HABmgvdPwzLrvn3U86JeY1Slra/w8/L60nb7UfGIC 2F0VESkCjKa6+ZvHd/3hpTh4UlXFnak= Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-5-MEOrAwzJPNit6PFaWDuZng-1; Fri, 29 Nov 2024 03:08:05 -0500 X-MC-Unique: MEOrAwzJPNit6PFaWDuZng-1 X-Mimecast-MFC-AGG-ID: MEOrAwzJPNit6PFaWDuZng Received: by mail-lj1-f199.google.com with SMTP id 38308e7fff4ca-2ffc7ad42b5so11370381fa.0 for ; Fri, 29 Nov 2024 00:08:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732867684; x=1733472484; h=in-reply-to:references:user-agent:from:subject:to:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=k0vbRCH75XvLIRFaXCL4e+YVgnnVtdrT3b8vHouOoHw=; b=VOkt5P4h/mr6x3pMoucfixbOJ6hfuUVjW8prLNpiMqO7b3yVxPv2qwCEkifCiscY0A dXYbYrp5UPEOz/FbNcyKYOPHJCivRde1+b+uXMPT/ytwdtUoN6ycwoqVgS0Scu7cP409 GPbgqFs25f/xVoh5yXiqqopG4PmaEqiXdQ8X4OplGFpfWIhU1gUfGBFHGzWtlfkveccR lNGyF9gCEMi+qKztKpxZaq56poWwqjjjehhiHq8VcSx4zsuCowTcruDw4SJ1U3G9io1g e99prfeY+57z+MnGt8gkQ0Vi2xhNgXWZxrlrDfo1c1YZf7ST0c05ZmgNXiej7YS/ZNmk LCZg== X-Forwarded-Encrypted: i=1; AJvYcCU0AJDa+kChboIQA4+4ICNol3WLd5aotN0KQZOW3lwpBwj9YckTRcesJAxliP8/FItUnmk=@dpdk.org X-Gm-Message-State: AOJu0YybyEMNSAtWTlZjn//xwKMlAYFxQU5BSg74SesbvYcL7y3+asw+ KyELWjCv0AzS5Ev/xVnFCuz1tEflfN/f95CQVTrRahuX/1C4qndxLqHmeUG7oH7mGAfdll9k6pG ARUn08K7HKf9iMxHRFvbLQTjSHMEKMB7XgByv5Utl X-Gm-Gg: ASbGncsxPB3r27tLD1905Y6W8GWf4eQbeNMGN+O71cfVnUlJCKPRYcc8nH1jSD3CNnU YipdShKxWwm/+V787ZGzcQVe0jc+ZN4MPttT5+v4L8s/FhbF5xxaS8oN+F0V9mU4zgSyPp1Tjv0 rcfleVQ2IUPyaF0UH9+5mFbGXKRTwhWaw9at1R/JHSVN808wQMCTuadWCg4nBDVAY8MThwIsk+x /lQIje4gOSH8l4P6RPkxykD2x5bK4hF3vy4xiK4iAkHWkKuwj9Q8Ev+rManYT+zWUZYGdqINf4w BFu9V+I6fV5USd2ANr76PMCoZ8ij5Hn+ X-Received: by 2002:a05:651c:19a5:b0:2ff:557e:b418 with SMTP id 38308e7fff4ca-2ffd613085cmr62030811fa.36.1732867684249; Fri, 29 Nov 2024 00:08:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IGtaMnz2NxaZZwxGl2je5r/CoQDYlRkzPPj4V5HZlARVDx3wczCPIpOrW6LdU34bFVIq4odmg== X-Received: by 2002:a05:651c:19a5:b0:2ff:557e:b418 with SMTP id 38308e7fff4ca-2ffd613085cmr62030451fa.36.1732867683726; Fri, 29 Nov 2024 00:08:03 -0800 (PST) Received: from localhost (2a01cb000245cb00e9052d5591b817ee.ipv6.abo.wanadoo.fr. [2a01:cb00:245:cb00:e905:2d55:91b8:17ee]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434aa74f1e6sm77505635e9.9.2024.11.29.00.08.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Nov 2024 00:08:03 -0800 (PST) Mime-Version: 1.0 Date: Fri, 29 Nov 2024 09:08:02 +0100 Message-Id: To: "Anatoly Burakov" , Subject: Re: [PATCH v3 1/1] usertools/devbind: allow changing UID/GID for VFIO From: "Robin Jarry" User-Agent: aerc/0.18.2-104-gae6ebb03d2df References: <4cd0282dabfa59e715028ecf255468529655b487.1725285449.git.anatoly.burakov@intel.com> <251f3e1bf71c3e873427708d566f677ecd50615c.1732698829.git.anatoly.burakov@intel.com> In-Reply-To: <251f3e1bf71c3e873427708d566f677ecd50615c.1732698829.git.anatoly.burakov@intel.com> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: O6r19wQtKY2GlZWyhXsBo3tzha5-4-zhqpYLuODRcV0_1732867684 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=Flowed X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Anatoly Burakov, Nov 27, 2024 at 10:13: > Currently, when binding a device to VFIO, the UID/GID for the device will > always stay as system default (`root`). Yet, when running DPDK as non-roo= t > user, one has to change the UID/GID of the device to match the user's > UID/GID to use the device. > > This patch adds an option to `dpdk-devbind.py` to change the UID/GID of > the device when binding it to VFIO. > > Signed-off-by: Anatoly Burakov > --- Reviewed-by: Robin Jarry