Message ID | 20181108144511.12678-1-colin.king@canonical.com |
---|---|
Headers | show
Return-Path: <fwts-devel-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42rR0D3GkSz9s7W; Fri, 9 Nov 2018 01:45:16 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from <fwts-devel-bounces@lists.ubuntu.com>) id 1gKlYX-0002Cb-R7; Thu, 08 Nov 2018 14:45:13 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from <colin.king@canonical.com>) id 1gKlYW-0002CG-5h for fwts-devel@lists.ubuntu.com; Thu, 08 Nov 2018 14:45:12 +0000 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from <colin.king@canonical.com>) id 1gKlYV-00063Y-SV; Thu, 08 Nov 2018 14:45:11 +0000 From: Colin King <colin.king@canonical.com> To: fwts-devel@lists.ubuntu.com Subject: [PATCH 0/3] Remove modprobe, replace with module system calls Date: Thu, 8 Nov 2018 14:45:08 +0000 Message-Id: <20181108144511.12678-1-colin.king@canonical.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development <fwts-devel.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/fwts-devel>, <mailto:fwts-devel-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/fwts-devel> List-Post: <mailto:fwts-devel@lists.ubuntu.com> List-Help: <mailto:fwts-devel-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/fwts-devel>, <mailto:fwts-devel-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" <fwts-devel-bounces@lists.ubuntu.com> |
Series |
Remove modprobe, replace with module system calls
|
expand
|
From: Colin Ian King <colin.king@canonical.com> This patchset replaces the exec'ing of modprobe to load/unload kernel modules with a set of helper functions to check, load and unload kernel modules. This is both cleaner and faster and allows finer grained error checking on module load/unload failure points. Colin Ian King (3): src/lib: add module probing helper functions lib: fwts_efi_module: use the new module loading helper functions lib/fwts_cpu: use new use the new module loading helper functions src/bios/mtrr/mtrr.c | 7 +- src/cpu/msr/msr.c | 14 +- src/cpu/nx/nx.c | 2 +- src/cpu/virt/virt_svm.c | 6 +- src/cpu/virt/virt_vmx.c | 6 +- src/lib/include/fwts.h | 1 + src/lib/include/fwts_cpu.h | 2 +- src/lib/include/fwts_modprobe.h | 29 ++++ src/lib/src/Makefile.am | 1 + src/lib/src/fwts_cpu.c | 22 ++- src/lib/src/fwts_efi_module.c | 55 +------- src/lib/src/fwts_modprobe.c | 235 ++++++++++++++++++++++++++++++++ 12 files changed, 309 insertions(+), 71 deletions(-) create mode 100644 src/lib/include/fwts_modprobe.h create mode 100644 src/lib/src/fwts_modprobe.c