From patchwork Mon Apr 8 15:53:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 786924 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1101:b0:343:f27d:c44e with SMTP id z1csp1415383wrw; Mon, 8 Apr 2024 08:58:04 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWn9g4kOBV0iP5geCsPVSOUNFFV+lkH3UThIOGylc7bijOp/N5xRWiAhBgJUfHczy4738LfFx8cL9CJZKxrzTL/ X-Google-Smtp-Source: AGHT+IGcECQdqGHbLvZohPCfqmfw1tUDoJeILPD57AaMMYvRzEyqqYJM+XplEdbJfE8+saYBxdiS X-Received: by 2002:ac8:574f:0:b0:432:f709:b4f1 with SMTP id 15-20020ac8574f000000b00432f709b4f1mr9007664qtx.63.1712591884620; Mon, 08 Apr 2024 08:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712591884; cv=none; d=google.com; s=arc-20160816; b=wW6IYrEMaKJtLvvKYwHkuF7XbLH5sQXZuky/01zTCA6EE0WHWJoJvbG3/JIAOw4buW owMitrkoBGia9Kq2NVnMRCed03gserwRMyudZBEEjXwKQqoxiy++mDlAMKNJs2KAmAP7 bbC8N51jCWRpFXc9j+hyP+W7+8S8xArNh9gEOt0/VWYJ7WU4ocgApbFbb6c3dxv+O8sD 9fI+mME9qmpVVcBgQjW/qNU+1CRQKGo2vZAWiFIxi81F/qBUBzQCr+ieyFEdYuVZcSgx b2Yb28o3z9dkJbWMXH/QKIKue5gYwWlTCBR1ToUeRfXeZUD8Du4M7uaM93ZYQbYyV5dt UwUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bTNCByh+icoanj+/ty2qD1fER7UWLq9kG/8oHf0fqoU=; fh=ycigHkwOPieh2u5PmcA89sNk/qPD1ZkdDlL8Mchfvw8=; b=q2tNhlv0WqvQGe04TPIJRbetp2Ys1H2pAcOBqyvhRUhtwqZlqjg2p2yA8mj9afjn+y yaOhKqte8AoHZiJaiWDCfJDVb0IyTrEegIa7I3Vdw+q3jfVc3KMqTvRw6T99pI8vmdqA 8ZFmBUiev7cG419K1CYkTOqo0KXJCoyqpblZ/CTQJC195u5c3+zJ1/bfrZp4szx9bHCe XSe1xvjrYZTqEYtOO/pr8+z0oON1xoIG6xhZLbm7CBzrT3JpQrsQRF0cGd2iDC7/d41P UVDaVqXkF5hcd0HN5YZBcbBe+1knRrXfTq+DfyBsy22I05hngGEDaV9Hb+F3XrE76C32 0OQA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="C0mV+/DM"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u12-20020a05622a010c00b00434231b9497si8762369qtw.27.2024.04.08.08.58.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 08 Apr 2024 08:58:04 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="C0mV+/DM"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rtrJm-0001Dp-4o; Mon, 08 Apr 2024 11:53:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rtrJd-0001BU-AT for qemu-devel@nongnu.org; Mon, 08 Apr 2024 11:53:51 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rtrJb-0001mW-C9 for qemu-devel@nongnu.org; Mon, 08 Apr 2024 11:53:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712591626; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bTNCByh+icoanj+/ty2qD1fER7UWLq9kG/8oHf0fqoU=; b=C0mV+/DMW9P0L8OhDAOv8zUvF+I4ongeybEDM3/w1RqO0++aJ5HeI9om8GAgBRmlkWJb0K Jl2Da63PWgfglasL/d67tN/8GeszoYodJ467YRLRGfa9bsS/1+Q1XaXawpkCQVtQxHDi6/ cop6EmJTwEvIVHNb2K8m1mSSHZMjvKI= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-26-eFI6fQAyM6-WAiDWF3GDXw-1; Mon, 08 Apr 2024 11:53:45 -0400 X-MC-Unique: eFI6fQAyM6-WAiDWF3GDXw-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-343e74dcf0bso1521176f8f.0 for ; Mon, 08 Apr 2024 08:53:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712591623; x=1713196423; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bTNCByh+icoanj+/ty2qD1fER7UWLq9kG/8oHf0fqoU=; b=jQs083wfqF3GDWhEdqc/5mEFhGiF4gflYLQPbVpVCXtN2RFEJziBavR2aQxxs9Po3c Gjm2W4d9RtV92Jx6NCegtpshbbDSRPOP/OsaO0Cn/0SxdfHSqJMV1R/QF4WcxyAGcczz Tz0VAxhKzNXCEwMg8oz1uBhAWi7y5uFkvKeY4NmrR6VzS6fZv3paAJElGbKWdEc2p3Oh a+uz+8NDY7FXSbx+v3cOzdywZHBFmZdBtoCfpMW/VnUull5rAMwRdzW5fKFhgc1qnhMv J0oGMErkDLOisheJ257/WYERaapyEPS6wBViKLe8sh9PDLxqtLAVyZDoyT6gfQWDBxuq p4+w== X-Gm-Message-State: AOJu0YyM/kUL7z9ZBk7QUiPoEv1LYa27txGI67gEGBVz1KZ2LY0gdYri dJxr3yuOctqg2MsTU9UmYRX4OudRjSaxnNt783cDaXe/CeY9/S4p+v1wIlv823lX5LsdVIWd6u4 fXK3hxkZeUxvU6CvPY4LwQgflBToPqykeGpFvlMGZMblp/W+OZigRTDsp/DbikYCjpa9sPNpYqa L/jlekacoTssM+rRDs9IBtU/0UOqRNqegH5kU1 X-Received: by 2002:a5d:4d85:0:b0:343:9308:3af8 with SMTP id b5-20020a5d4d85000000b0034393083af8mr5502123wru.23.1712591622813; Mon, 08 Apr 2024 08:53:42 -0700 (PDT) X-Received: by 2002:a5d:4d85:0:b0:343:9308:3af8 with SMTP id b5-20020a5d4d85000000b0034393083af8mr5502111wru.23.1712591622420; Mon, 08 Apr 2024 08:53:42 -0700 (PDT) Received: from avogadro.local ([151.95.152.232]) by smtp.gmail.com with ESMTPSA id c11-20020adffb4b000000b00345bcb4fdb9sm2606101wrs.16.2024.04.08.08.53.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:53:41 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: philmd@linaro.org Subject: [PATCH v2 03/18] ebpf: Restrict to system emulation Date: Mon, 8 Apr 2024 17:53:15 +0200 Message-ID: <20240408155330.522792-4-pbonzini@redhat.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240408155330.522792-1-pbonzini@redhat.com> References: <20240408155330.522792-1-pbonzini@redhat.com> MIME-Version: 1.0 Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.494, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Philippe Mathieu-Daudé eBPF is not used in user emulation. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-ID: <20240404194757.9343-2-philmd@linaro.org> Signed-off-by: Paolo Bonzini --- ebpf/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebpf/meson.build b/ebpf/meson.build index c5bf9295a20..bff6156f518 100644 --- a/ebpf/meson.build +++ b/ebpf/meson.build @@ -1 +1 @@ -common_ss.add(when: libbpf, if_true: files('ebpf.c', 'ebpf_rss.c'), if_false: files('ebpf_rss-stub.c')) +system_ss.add(when: libbpf, if_true: files('ebpf.c', 'ebpf_rss.c'), if_false: files('ebpf_rss-stub.c'))