Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 603B8C433EF for ; Wed, 8 Dec 2021 19:16:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230364AbhLHTUU (ORCPT ); Wed, 8 Dec 2021 14:20:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbhLHTUT (ORCPT ); Wed, 8 Dec 2021 14:20:19 -0500 Received: from mail-pl1-x649.google.com (mail-pl1-x649.google.com [IPv6:2607:f8b0:4864:20::649]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AF71C0617A1 for ; Wed, 8 Dec 2021 11:16:47 -0800 (PST) Received: by mail-pl1-x649.google.com with SMTP id e10-20020a17090301ca00b00141fbe2569dso1304811plh.14 for ; Wed, 08 Dec 2021 11:16:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=IbHH1eM7+h5JA/Wq7qVMHPIVqo/1uljJ6CH0uHyrjD8=; b=C/Lkut5Vvd+odmZn3T7EImyPb9hSe/IbC+QLw/n/F8eMNrY9JgHnOANkktmMpsGv/P sMp1QEUPZOLesC+96+pkElI3ReolspbG9+E9HMqkohWgkz4Btdg5ggxwaFScVxhqcPAf KcuNJU3AuTQn9hZhyZm73AFW6WiMdZFXQ/lu6RKljVnrlepfv2/u910uDmYt5Ufyy6tc Pd6osWEBua0Rx4F0Ueul2Jf8i+liJ0VGKfRi4gL5FruVpiU44AT0BdtVD79/FnOnhgkz 0gSK37HBDwzKopTpdYD6PZdbz/4Dnqn6QEhCvYl1/L7HLobGx7lV3us3CMgC4CqFdx+H MUWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=IbHH1eM7+h5JA/Wq7qVMHPIVqo/1uljJ6CH0uHyrjD8=; b=ZZUdzojzI8a4Vfc/xTiZlHyt5AkoVI/6zqzLrfDDvboJMI0lwm5hTirgTjc9bMa+QV 5MlWNPHIJ24jEPHdQKkSCZFRCGUNCXY9zpJIAVvpNnnfI7+XqMq2sf6J5K/PgacLwY8l V2JvnOEqRZ8mrMRw9b1rxh2s/oKGnqEQflr/WGCJFOfmNVH4ZrgUHDmNrkMxlj0Znooi A51qeB0kek21ZIhMHJH1Anbqyap312hGiwdvwAbGb/2FUGB/6ZmuYMB6OqJa8TKT29sx XMlicctZ9zsCUXM3SK1e5FbiTc+U5D0tAywVauXRYlJCnx324fYO5X0EddnaDDPwfJfi 3NYw== X-Gm-Message-State: AOAM5325GBTlBuVysOvMkHjYLuxDXTHE6q4TwRUZdYM5Z5E5seP396zN py2NwHcM0gCgW7ugMYwgRlRUpbOVjhkXb1e2rUQQt+St2xzb+rAlOFSgl8z2ZBKhjuRoJq34fIV mR9YFsbPHlTor4IlThm9sDrwkVIPQAMsvNzDv3OOnzI25kNeRfWaCKm2cFEe3P15XgZ6atw== X-Google-Smtp-Source: ABdhPJzbQwRn8BEp17nvsf8JcBg+qKR92YLHP49MnjCculnvJHOPbV/gUD1PpGVH3Bj77mJ+nx5lepeMuIA= X-Received: from pgonda1.kir.corp.google.com ([2620:15c:29:203:ff20:12b0:c79e:3e6b]) (user=pgonda job=sendgmr) by 2002:a17:90b:3849:: with SMTP id nl9mr9677376pjb.145.1638991006729; Wed, 08 Dec 2021 11:16:46 -0800 (PST) Date: Wed, 8 Dec 2021 11:16:39 -0800 Message-Id: <20211208191642.3792819-1-pgonda@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.34.1.400.ga245620fadb-goog Subject: [PATCH 0/3] Fixes for SEV mirror VM tests From: Peter Gonda To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Peter Gonda Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Updated patch series for fixing bug in sev_ioctl() which allowed test to look like a mirror vm could call KVM_SEV_LAUNCH_START. Adds additional testing to validate mirror vm can only call subset of commands. I could not add the patch Seanjc recommended due to issues with sev_platform_init() not correctly setting the fw error. I'll work ontop of the INIT_EX patch series to fix this issue with the PSP driver. Peter Gonda (3): selftests: sev_migrate_tests: Fix test_sev_mirror() selftests: sev_migrate_tests: Fix sev_ioctl() selftests: sev_migrate_tests: Add mirror command tests .../selftests/kvm/x86_64/sev_migrate_tests.c | 59 ++++++++++++++++--- 1 file changed, 52 insertions(+), 7 deletions(-) -- 2.34.1.400.ga245620fadb-goog