From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ua1-f74.google.com (mail-ua1-f74.google.com [209.85.222.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 066681DDC1E for ; Mon, 14 Apr 2025 20:09:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744661381; cv=none; b=ai/xqPgcFg8KGOKePByWGebwnYkYIyOZXuUUprbELt6B/f1C+ynquI16namq0KJjVtRo2M1oTzhc7yFL2IcLoZit6y+QnScREdQNRhmMb0O05J5tVgautr2vu0OEJDUTsxLM/QClXwmaC4ijiLoj31muNEAaHN5b88C3Kw33b14= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744661381; c=relaxed/simple; bh=x6q1xZ3yBUeYcvd83AJGvAMjSYwBLFzBm1ig+KWei+E=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=JUjk+o24hYLJpvmH4tAKPlZ5l63hPaaeaw3k9xFs6dc++8O+HendC0plp/W8Fa3WzHWe9Tm3ndMpcwndQnA2V6UQovElzpzKlvlOVHkBVk6NI11XzK8LQa9vW8Pm9wjPKTO685/13oJHQV3ycbXrHiIJZhrxVc4kLviChFoVJ7Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--jthoughton.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=CN+Adv6X; arc=none smtp.client-ip=209.85.222.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--jthoughton.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="CN+Adv6X" Received: by mail-ua1-f74.google.com with SMTP id a1e0cc1a2514c-86d3f4d0496so1176561241.1 for ; Mon, 14 Apr 2025 13:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1744661378; x=1745266178; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=yShiSNlbRrsjewo8erMpkmzkSvjH2QZkd/vX1jbbzhI=; b=CN+Adv6X0n7ch09DqGrGklfsFTNcD6Rw9lFX6mr5zfSmoYKiQz85MDhD9s4uW+MEFh pLHhcDqh5ZIyBxyN1aB6bR5Rgnb3bL3vQBwkaguURaEFwYPdFunoLeUOo4maAx/Z8Txk YlFMsnM9NdwB/zyna+77mMA+Z/obH1f0f1JxgiWVldvrBNWJWwvoiwhuIQ1TrHIBPhiD YuY2P7voLpKW/7WF3WyhNN8QQHFYi1zyBNpXDa8LNpOA1UigS8TIquvbyyjB1jpegzqg yh1Q0B4DX5ZQovivLouDWNpusZz1Th/h2IhhYVv2l9Pny+V5/cIjXEjqF07Zgunueshu hcWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744661378; x=1745266178; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yShiSNlbRrsjewo8erMpkmzkSvjH2QZkd/vX1jbbzhI=; b=WffZ0Mmbas4h07p6vUX5RuA7fs0/eRtx0OuY3dap57jVfKWGF21jqiRD1588kZtPrY BgliaI4UASEk5OXlujOjQgS8UOOas4h1j7Gc1ISdm5++sAQKEYj0VlS6A3auwhZbo9ft BxvfTrfTSAqkvr2Du7fC646dCDx4VL9y/hhwG95K8+EqqjQB+Tjs5N6zcbQKFp1JtrwG OnX+kiGOf9ZSDqmA6UW7DrkTNinzpDBYrHv+Qjhx/6GXMcA5Xz9wnH22GyDwJFoZLs0A M8GUCXzTnSYk9sLhM3hMUcoWC31wYfrUYkLgNh2IWjnoRfYN965jdVhKVD2E3ylQQFlB ORyQ== X-Forwarded-Encrypted: i=1; AJvYcCW+Z9NR4+Sm7j5IHxEbi3W4QD2scWaEUBqajzZlFCwPKgX95ESbNIwqHwkpoWug3h9sjvzJqfYB@vger.kernel.org X-Gm-Message-State: AOJu0YzseyDuXBnhpJzlLHEa2/e5rs+wH77mFc5bjgrfCYX/n8nEQHfA LyHKjOwvLgAa13UOcZhgx3yuEXPmvlF8Vb51DKfFB8svv2Zg5pr4Q0zcHVoGOmvN3RkC3hHxaja 4BTYhY/pO4gwRxRhypA== X-Google-Smtp-Source: AGHT+IFWx4KpMIbxFpAwRHbcSPjOf45XcTuJLvHUktQ+xHXKdwuwHIuf1RL64vv5UDAQCwn8mu36HAZXiw5xxVhZ X-Received: from vsbia12.prod.google.com ([2002:a05:6102:4b0c:b0:4c1:8cb2:18cb]) (user=jthoughton job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6102:5247:b0:4bb:eb4a:f9f2 with SMTP id ada2fe7eead31-4c9e4eec0damr9244631137.9.1744661377900; Mon, 14 Apr 2025 13:09:37 -0700 (PDT) Date: Mon, 14 Apr 2025 20:09:28 +0000 In-Reply-To: <20250414200929.3098202-1-jthoughton@google.com> Precedence: bulk X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250414200929.3098202-1-jthoughton@google.com> X-Mailer: git-send-email 2.49.0.604.gff1f9ca942-goog Message-ID: <20250414200929.3098202-5-jthoughton@google.com> Subject: [PATCH v3 4/5] KVM: selftests: Build and link selftests/cgroup/lib into KVM selftests From: James Houghton To: Sean Christopherson , kvm@vger.kernel.org Cc: Maxim Levitsky , Axel Rasmussen , Tejun Heo , Johannes Weiner , mkoutny@suse.com, Yosry Ahmed , Yu Zhao , David Matlack , James Houghton , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" libcgroup.o is built separately from KVM selftests and cgroup selftests, so different compiler flags used by the different selftests will not conflict with each other. Signed-off-by: James Houghton --- tools/testing/selftests/kvm/Makefile.kvm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/Makefile.kvm b/tools/testing/selftests/kvm/Makefile.kvm index f62b0a5aba35a..bea746878bcaa 100644 --- a/tools/testing/selftests/kvm/Makefile.kvm +++ b/tools/testing/selftests/kvm/Makefile.kvm @@ -204,6 +204,7 @@ OVERRIDE_TARGETS = 1 # importantly defines, i.e. overwrites, $(CC) (unless `make -e` or `make CC=`, # which causes the environment variable to override the makefile). include ../lib.mk +include ../cgroup/lib/libcgroup.mk INSTALL_HDR_PATH = $(top_srcdir)/usr LINUX_HDR_PATH = $(INSTALL_HDR_PATH)/include/ @@ -257,7 +258,7 @@ LIBKVM_S := $(filter %.S,$(LIBKVM)) LIBKVM_C_OBJ := $(patsubst %.c, $(OUTPUT)/%.o, $(LIBKVM_C)) LIBKVM_S_OBJ := $(patsubst %.S, $(OUTPUT)/%.o, $(LIBKVM_S)) LIBKVM_STRING_OBJ := $(patsubst %.c, $(OUTPUT)/%.o, $(LIBKVM_STRING)) -LIBKVM_OBJS = $(LIBKVM_C_OBJ) $(LIBKVM_S_OBJ) $(LIBKVM_STRING_OBJ) +LIBKVM_OBJS = $(LIBKVM_C_OBJ) $(LIBKVM_S_OBJ) $(LIBKVM_STRING_OBJ) $(LIBCGROUP_O) SPLIT_TEST_GEN_PROGS := $(patsubst %, $(OUTPUT)/%, $(SPLIT_TESTS)) SPLIT_TEST_GEN_OBJ := $(patsubst %, $(OUTPUT)/$(ARCH)/%.o, $(SPLIT_TESTS)) -- 2.49.0.604.gff1f9ca942-goog