From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 615081DDD1 for ; Thu, 2 Jan 2025 13:23:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735824211; cv=none; b=Q73nazl/p0LBqLcYYryS8s4zwnujtH1E8XcKsQSHUNxECTHSc3M9WlgUJP78pYVlpq4veBgYfaSEZRPzgc2MtNMh2T4Inllsu4YuzEHmpCnbMsGAvUt9jQ2KVWwwuswNzKtBZub/Sw8YI7JFkdbRHatfnV38uiM3CBQvKqDQPlU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735824211; c=relaxed/simple; bh=7fP49DbOdC7twojRMUdOCHi9EOVU/gW1tncMK/VtsIs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JX3Jx9AvWwd2L6Ku2LmC0f/q28Ler4TAizwSVvugdd3EIoTjKW8KdXeIbQejXt/S8uaV6s9ZJniXY2RMW3jMwGWf5/RTz1zLMKQqa8CYs3xxQXA3EiTkP8LCkhguIvSyUNHzXD59LFFEtAdQaK3uSUphcScI9Xr8vXOtTl1w1uM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A775A11FB; Thu, 2 Jan 2025 05:23:56 -0800 (PST) Received: from raptor (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7DBB23F673; Thu, 2 Jan 2025 05:23:27 -0800 (PST) Date: Thu, 2 Jan 2025 13:23:24 +0000 From: Alexandru Elisei To: Vladimir Murzin Cc: kvmarm@lists.linux.dev, nikos.nikoleris@arm.com, andrew.jones@linux.dev, eric.auger@redhat.com Subject: Re: [kvm-unit-tests PATCH v2] arm64: Add basic MTE test Message-ID: References: <20241212103447.34593-1-vladimir.murzin@arm.com> <0fc53bdf-f919-40b9-8530-d11593ec55f7@arm.com> <590394e4-b21f-4ff8-a250-0cbf50adfe38@arm.com> <6db97d9c-abe0-4418-903f-bc4662a8cab0@arm.com> Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6db97d9c-abe0-4418-903f-bc4662a8cab0@arm.com> Hi Vladimir, On Thu, Jan 02, 2025 at 12:10:05PM +0000, Vladimir Murzin wrote: > Hi Alexandru, > > On 1/2/25 11:45, Alexandru Elisei wrote: > > Hi Vladimir, > > > > On Thu, Jan 02, 2025 at 10:04:37AM +0000, Vladimir Murzin wrote: > > [..] > >> On 12/30/24 15:19, Alexandru Elisei wrote: > >>> Hi Vladimir, > >>> Interestingly though, when I try to run a test (either with ./run_tests.sh > >>> mte-sync, or by trying out your example), I get this error: > >>> > >>> qemu-system-aarch64: MTE requested, but not supported by the guest CPU > >>> > >>> My guess is that's caused by kvm-unit-tests defaulting to cortex-a57 as the > >>> model CPU. Changing the cpu to 'max' makes the test run. How are you getting > >>> around this on your end? > >>> > >> ./configure --arch=arm64 --processor=max > > Ah, so that explains it. Would you mind adding this information to the commit > > message, perhaps something like this: > > > > If using TCG as the accelerator, qemu must emulate a CPU that supports MTE > > in order for the tests to run. Use configure --processor to set an > > appropriate CPU. If unsure about a particular processor, 'max' will most > > likely work with a new enough qemu version. > > > > Yes, I can add it when re-spin v4 (sorry just sent v3). Alternatively, we can > merge change defaulting processor to `max` for arm64 which IMO much better > solution (and does not require me to re-spin the patch) ;-) I'm going to send patches to make 'max' the default, so no need to respin :) Thanks, Alex > > Cheers > Vladimir > > >> Thanks > >> Vladimir > >> > >>> Thanks, > >>> Alex > >>> >