Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4579895pxb; Tue, 31 Aug 2021 08:23:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH0Am1esixT1SRJHx+tC1zeNvPnA8pDA7g4MkcIHG3FpzX1ACGmZxeQ7du3bUBkCTbc1X5 X-Received: by 2002:a2e:3307:: with SMTP id d7mr25736909ljc.292.1630423427064; Tue, 31 Aug 2021 08:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630423427; cv=none; d=google.com; s=arc-20160816; b=Z48TGPJnbHvydae1UQKka8yc06jJdzZTQaDomPzWr+6Z5obKDlL7v7UdgWAEZRxyGi 0g/LQomV+1VTL3xvwgIhEhPiu/yOnzYNK3TPoM5YVZoZjTXUkRP+RvDfGJZ6qZb6Cr/b ZRDcuo4Ddyf619eU0BRwXmKHUM4PDinti1NVs+KHp84wjV9aDlhtd/PqsMC6l9L/LrCz JznE/NtsQ0NyTyYOuX0lwDybqtKFjNJS8AH1UuUVKsRlY17gTAVFeCOFLI50pAuOI8OF QobMh365xVX++6BywIzZgIkM/yaoZ1x9i+wYhLl9gn7GDxyYAMPoY009ZLHKcLMFmWoZ 9Uag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=1zIJvJx7aKPHA9dq+1gklt6UHbhg1saYHpxhNeageN0=; b=Bw4aGc7V0JZhuNPlri5IIVTPD354pzKb48tedghN8olT684zx5/G/MFDyOPYtZ8uYb wcOq/fLxI4sB8e7eNuKbeb1fPAoeqY/lKpPNqNiPYkTsxV99FpVomjBFceAfzAkRPQ6v GEQmz2DXjA43Fl4/c5uvB7co1dgDF4OqWHoBej67X/aurPe2LsUY38hsAakjTcnsraox vgoNI9Xs4y2Ja9phAi1U3rld6L12HcqnUTgQwWFCIL8yZvMlXe59UsdQ4WFdkgBjiyaI JotSDwz+zaP7naqc4KOvaOOv7TMe2wEv6S0QTIc5zsn0TfqbIM9udFSJhNu9qs0q8O8Z kEMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=OLo5kXmf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 29si6354020ejf.457.2021.08.31.08.23.22; Tue, 31 Aug 2021 08:23:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=OLo5kXmf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239052AbhHaPVw (ORCPT + 99 others); Tue, 31 Aug 2021 11:21:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236959AbhHaPVu (ORCPT ); Tue, 31 Aug 2021 11:21:50 -0400 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA185C061760 for ; Tue, 31 Aug 2021 08:20:55 -0700 (PDT) Received: by mail-ot1-x32f.google.com with SMTP id g66-20020a9d12c8000000b0051aeba607f1so23213919otg.11 for ; Tue, 31 Aug 2021 08:20:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1zIJvJx7aKPHA9dq+1gklt6UHbhg1saYHpxhNeageN0=; b=OLo5kXmfJqgx3LkOYhuEwMs+FvUTre1urLHM/OgdjbHJVVqQMqrRbqy3HNaS4YjBCE KZNyifnwS5ZSXf8AaZ3yZcAli5vw2YwXLOpz32nc5PgswZ+mhCbHxQ/8paIU8VoeQ2// YK9wSE7IwWIhV6gcxE32USMwupbp7R5+TnN5f19LyJQaf588t4DcLo0wxxzyaD9djPBT O1+LXUm6v5lu2jFX3ffCihLnu+WBTxBd4kVNun876Go/rEFtVbShNR5yBljBQUiBv82S I3jzWR11Rb5dQ+R7sEllnaPqjTF/bQRhswja2LPYlMNv4Zmt4XCN5PjJ3rGaBm76t5cW WE6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1zIJvJx7aKPHA9dq+1gklt6UHbhg1saYHpxhNeageN0=; b=jGb0d1yfaNQhgABX3GXSejLanVHeFQTPbVP6ZfuF8objdmOO3h5Wci54O9QPfJMz1V 8YswAuJFZg6RSugaalyY0pDCK/uXu8kEd4YeqWZK+s1hxahMnvHCfEUfrYjvQvpjfUJg UoaDPmI5y3SpS7gMZWCyMJ26dqPXCrlYx8IIRnG1sc86nLHeZrU00TtVqsqSD6R7tJLF rvTULipOAlltkJ8TlZ95x5M4VMwxBHGjjmOq5iOTESM/OkV+xiUfQEN7wZiL/AhpiD8w ssqK2n0MS92NgABsnKTLiENxw5TcEjLhQ1Vykz7WEc9HSnDitqjG4+whJPKZJaOhkfQ5 vR4A== X-Gm-Message-State: AOAM530QDeEqUrAj4tt2qTq51lp4VCTSbYj3GpulS1QNjJa1wRz+3bjK BreY1QIBRLcm/vLIX99g8kMypS0ZT8hggNIg3pQDug== X-Received: by 2002:a05:6830:353:: with SMTP id h19mr6609040ote.264.1630423254797; Tue, 31 Aug 2021 08:20:54 -0700 (PDT) MIME-Version: 1.0 References: <20210830212951.3541589-1-pgonda@google.com> In-Reply-To: From: Marc Orr Date: Tue, 31 Aug 2021 08:20:43 -0700 Message-ID: Subject: Re: [PATCH 3/3 V6] selftest: KVM: Add intra host migration To: Peter Gonda Cc: kvm list , Sean Christopherson , Brijesh Singh , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > > + > > > > + for (i = 0; i < 1000; ++i) { > > > > + j = input->source_fds[i % LOCK_TESTING_THREADS]; > > > > + cap.args[0] = input->source_fds[j]; > > > > + /* > > > > + * Call IOCTL directly without checking return code. We are > > > > + * simply trying to confirm there is no deadlock from userspace > > > > + * not check correctness of migration here. > > > > + */ > > > > + ioctl(input->vm->fd, KVM_ENABLE_CAP, &cap); > > > > > > Should we use `vm_enable_cap()` here? > > > > > I took all other suggestions but this one I just updated the comment. > vm_enable_cap TEST_ASSERT()s if the ioctl fails. Since we are just > randomly iterating through a bunch of ioclts we fail often so this > would kill the test. Gah, of course! My bad. Anyway, sounds good and thanks!