From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (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 63BE52CCDF; Mon, 19 Feb 2024 12:02:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708344164; cv=none; b=jtDcCRoebN7UxyNzYX/1HtXYADZ3I9jUzXxSf/7990PV2emwQ5j5zalcD1zc5qhyE4IQPMM4JoEZ6SqrkxlXRMYgbteSw5kxQn5zhz/UW0eLazTT66pwwI1u6uk9HzZhwkocGJkkkQ1PqzEQyIltUTC/8sXN/qHqQLg0GPIXUQE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708344164; c=relaxed/simple; bh=SJNxDovJQU4s53wEmE6hVUIUVXIND8lC8ymI4e7vDRc=; h=Mime-Version:Content-Type:Date:Message-Id:To:Cc:Subject:From: References:In-Reply-To; b=Eb2jMD1X0u9ysy5IXsJ7VO7rn45vWcDlLEt4boLWrClBBVS8ppvPKE1rcHYXvxlQ3XyA1OjK+TLZUsiXrOYNVzSghGk0RK4i+29O8ayGTbgpsf73GPCV9eGJi5KgJRAOkGeufqEA9lZr3L/a81RV6YC4fdTJJ2NP8xZHI7M/g34= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BN6952uD; arc=none smtp.client-ip=209.85.210.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BN6952uD" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-6e0a37751cbso3022709b3a.2; Mon, 19 Feb 2024 04:02:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708344162; x=1708948962; darn=vger.kernel.org; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=sXVHiQqTVvLwPVSN4wK295H+HuDvWyHMdFATUrh61Qw=; b=BN6952uDxwxzji1jp1NOEAxqAE6Mt8Ty4Rk7UVasrFsq/nr4FV9qhPnZ7IsF1962bD TwhI/+MQfmO3Ur3hInyZIf9dLpS0NVg9GQDS62oylZMY7bMtmjoXOOuKTzth1klzmlzc S/fFHjB2ylCa0P44ig6uJT/RUUjuhhBEePJGcNTfHuZYZlUVnhm8oJ8+AU8zxE/8S8SU 2VW8kG7u0CHn6H3SO2ANYTh0XC3BN9q5BiZh8DNvuEmInY3f/mYaDopk3vaFsxKFcM8R k+1IDQ/aceYMagYc/uolGF6UKSIx4EFPhrBNxsLkQ0phM9qrBg7uOJxg0Jr6phUwSa7j OwyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708344162; x=1708948962; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=sXVHiQqTVvLwPVSN4wK295H+HuDvWyHMdFATUrh61Qw=; b=F8VjputUtWGW/I+jc9NOSZg1TBjUbwX0gz7TOOm42sAc3bHEXuGp3lBytYVLoIU9xh f+w3xRLcE8nNtSzagAw3Lf7g4z8fGyP843bV1GBJPe4pvIRsIoDoP/yPSFnk6u4LSItb yJms46iDNJua0hbQaE/llSCCEyEggqfXlKWtvmn+amWbbKgOAPQaEvOqEcynKBDML0kR ZdCQrz7OjU/j8I2mBnbcJFRBk/cyIFclZX+2vFlMYLARS7Rr9/fuoyScFt5mebWVorKd lajOClaxY1GObDFLYlGAYLpyZWfnWVSTBNudPMcDacMQI4xvnfgQ945S2WB9zWzNTfgO WWoQ== X-Forwarded-Encrypted: i=1; AJvYcCWMenXay8ud/RXB+5qfqpF7UxtuDiszfwaU4TkMkJpENOhtXfAfTLJvnGWMWBpYGqTOUSAsNTq98+c4sJZpPW+iFOIgIpGMQCcnjQ== X-Gm-Message-State: AOJu0YyPGqHVqE5lb89mYMpHYn1XMNhMP9w6Q0ThUS4dpgIA90KhAg8v cSWDu3FQZ0SwByNtj94bje8FzbkJmy0iNUIpUayZ41UbXf3kE3GCE5RtKkp1 X-Google-Smtp-Source: AGHT+IGM/mBl6p+7VQ/UBUY0liSnc0g8tiRAnqqtUyMEBG/QP3L26RLnUqLU9SBZSVRFhEVzjBzHUg== X-Received: by 2002:a05:6a20:2d13:b0:1a0:aea4:f15c with SMTP id g19-20020a056a202d1300b001a0aea4f15cmr656909pzl.4.1708344161563; Mon, 19 Feb 2024 04:02:41 -0800 (PST) Received: from localhost (123-243-155-241.static.tpgi.com.au. [123.243.155.241]) by smtp.gmail.com with ESMTPSA id y17-20020aa78551000000b006e0e66369e5sm4638738pfn.66.2024.02.19.04.02.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Feb 2024 04:02:41 -0800 (PST) Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 19 Feb 2024 22:02:32 +1000 Message-Id: To: "Thomas Huth" Cc: , "Laurent Vivier" , "Shaoqin Huang" , "Andrew Jones" , "Nico Boehr" , "Paolo Bonzini" , "Alexandru Elisei" , "Eric Auger" , "Janosch Frank" , "Claudio Imbrenda" , "David Hildenbrand" , "Marc Hartmayer" , , , , Subject: Re: [kvm-unit-tests PATCH v4 8/8] migration: add a migration selftest From: "Nicholas Piggin" X-Mailer: aerc 0.15.2 References: <20240209091134.600228-1-npiggin@gmail.com> <20240209091134.600228-9-npiggin@gmail.com> <4d73467d-2091-4342-87a1-822f4aeb8b70@redhat.com> In-Reply-To: <4d73467d-2091-4342-87a1-822f4aeb8b70@redhat.com> On Mon Feb 19, 2024 at 4:56 PM AEST, Thomas Huth wrote: > On 17/02/2024 08.19, Nicholas Piggin wrote: > > On Fri Feb 16, 2024 at 9:15 PM AEST, Thomas Huth wrote: > >> On 09/02/2024 10.11, Nicholas Piggin wrote: > >>> Add a selftest for migration support in guest library and test harne= ss > >>> code. It performs migrations in a tight loop to irritate races and bu= gs > >>> in the test harness code. > >>> > >>> Include the test in arm, s390, powerpc. > >>> > >>> Acked-by: Claudio Imbrenda (s390x) > >>> Reviewed-by: Thomas Huth > >>> Signed-off-by: Nicholas Piggin > >>> --- > >>> arm/Makefile.common | 1 + > >>> arm/selftest-migration.c | 1 + > >>> arm/unittests.cfg | 6 ++++++ > >> > >> Hi Nicholas, > >> > >> I just gave the patches a try, but the arm test seems to fail for me: = Only > >> the first getchar() seems to wait for a character, all the subsequent = ones > >> don't wait anymore and just continue immediately ... is this working f= or > >> you? Or do I need another patch on top? > >=20 > > Hey sorry missed this comment.... > >=20 > > It does seem to work for me, I've mostly tested pseries but I did test > > others too (that's how I saw the arm getchar limit). > >=20 > > How are you observing it not waiting for migration? > > According to you other mail, I think you figured it out already, but just= =20 > for the records: You can see it when running the guest manually, e.g.=20 > something like: > > qemu-system-aarch64 -nodefaults -machine virt -accel tcg -cpu cortex-a5= 7 \ > -device virtio-serial-device -device virtconsole,chardev=3Dctd \ > -chardev testdev,id=3Dctd -device pci-testdev -display none \ > -serial mon:stdio -kernel arm/selftest-migration.flat -smp 1 > > Without my "lib/arm/io: Fix calling getchar() multiple times" patch, the= =20 > guest only waits during the first getchar(), all the others simply return= =20 > immediately. Yeah I got it -- I re-ran it on arm and it is obvious since you told me it's not waiting. At the time I tested I thought it was just arm migrating really fast :D Thanks, Nick