From nobody Sat May 18 09:48:29 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.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=1644401666; cv=none; d=zohomail.com; s=zohoarc; b=QznPgwyldvaMUk7KRS9a6BeonIforkkFhuQ7t/S66F5m9uJvS7x7XpyEuwtTaDUguTOKUwDwc83KbdvXdmu5hP7NRNdq57RVLiZZHgws2mBMaEUEeHJf0RYmx57HCmIsl3/qnXhkcKKJemFK2Br9rIaHwE6kVoZLH0cD3i9Tacg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1644401666; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=AYjP+g9fJ9U3bNzoBhYcLYoKLfXyGBmtaJApWXF+hMY=; b=Q0JBAeu2r7nULSow2pMEsFDL9MHKCOkb8GmUsozKyAfUMyqOWJGk1sjuHv0wZq04fsPJgCopqKSMb0Yq9XWXdvRZI+o0lC1GVq6cSOvdirpL++PpJS8wCfYfYwtKwBI9Bt387WmoCJjmsZBb/M30zHCNQyUoZFRDCVWCbbUal1Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1644401666461553.8645859452042; Wed, 9 Feb 2022 02:14:26 -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-617-avhulU-wMjamCjFgKjweOQ-1; Wed, 09 Feb 2022 05:14:24 -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 C4ADF8519E0; Wed, 9 Feb 2022 10:14:18 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3997B73157; Wed, 9 Feb 2022 10:14:18 +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 37EB94BB7C; Wed, 9 Feb 2022 10:14:16 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 219AEEVW028628 for ; Wed, 9 Feb 2022 05:14:14 -0500 Received: by smtp.corp.redhat.com (Postfix) id D82D360C3A; Wed, 9 Feb 2022 10:14:14 +0000 (UTC) Received: from virval.usersys.redhat.com (unknown [10.43.2.187]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AE68860C38 for ; Wed, 9 Feb 2022 10:13:57 +0000 (UTC) Received: by virval.usersys.redhat.com (Postfix, from userid 500) id C184B2408DA; Wed, 9 Feb 2022 11:13:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644401666; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=AYjP+g9fJ9U3bNzoBhYcLYoKLfXyGBmtaJApWXF+hMY=; b=Jbo3ZVL6KnwV+f+GepQU48pUPuq4vZZtIFTkInLZV/HynH9VbdkoXhLrAedM8F7fpcaGJT 5+yuxuvio6LPXFhTbG5kijxwyQ3BXgO4KiTOZFWEJ1nf3g8qznxsEjDeTfh4eya5uorZ6V 9DpswJ2IUYHJ44FiowRzKw5s7ZyXDZM= X-MC-Unique: avhulU-wMjamCjFgKjweOQ-1 From: Jiri Denemark To: libvir-list@redhat.com Subject: [libvirt PATCH] qemu: Ignore missing vm.unprivileged_userfaultfd sysctl Date: Wed, 9 Feb 2022 11:13:54 +0100 Message-Id: <67f443ee3961fc0c9d1efe5f9c14a75cc0e12595.1644401634.git.jdenemar@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1644401668522100001 Content-Type: text/plain; charset="utf-8" Older kernels did not support this sysctl, but did not restrict userfaultfd in any way so everything worked as if vm.unprivileged_userfaultfd was set to 1. Thus we can safely ignore errors when setting the value. Signed-off-by: Jiri Denemark Reviewed-by: J=C3=A1n Tomko --- src/qemu/postcopy-migration.sysctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/postcopy-migration.sysctl b/src/qemu/postcopy-migrati= on.sysctl index aa8f015ae0..db3f11e49f 100644 --- a/src/qemu/postcopy-migration.sysctl +++ b/src/qemu/postcopy-migration.sysctl @@ -3,4 +3,4 @@ # privileged processes. # It can be safely overridden by a file in /etc/sysctl.d/ in case post-copy # migration is not used on the host. -vm.unprivileged_userfaultfd =3D 1 +-vm.unprivileged_userfaultfd =3D 1 --=20 2.35.1