Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp482176yba; Thu, 16 May 2019 04:14:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/dN7nVXOsRpwViucdUloGrzGA0OSYAAm5IAb06LmoLp01gpZbT9BRCQnIm2d+iJCD3SrZ X-Received: by 2002:a17:902:8ec6:: with SMTP id x6mr48426148plo.123.1558005272424; Thu, 16 May 2019 04:14:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558005272; cv=none; d=google.com; s=arc-20160816; b=WzbiO1R5SKkD3975AL35CqLqarO10Rg1XFDOJQrFfs8EYjzZowy16eCnG3bDnrlqNc l8byhFP9ABnYti2KBOtvGVBG7BBu3Pb820IH1Q9XzRaVdWKfsNCr1o2SqKD+1NbGGnTK wdWg1vklA1mro0/cvo9iPibqRjuUj3LMePtuYQwYaCGrZxE/fhmx6USBD0fP+8cfeuM9 fY6tIaUpbwRCP2tq6IR5Agzac2sno2aU0aERf5cKbonxJxpY/1ULnidzSlKi8FJzdTYW OU8BR4oTyqmixX7Hmz5Voy43MEHMTfuBwDuI+5Of/crU/bPXtqq7TYL/JuLr2aVSKTqn d81g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=hv2/cCuEYj5AEc62MoMFwP59bgFu3ZYSJNeoF9iKltY=; b=fOrQSR1QGLWI1kBIHZRcnMLe14xZOr9nniXZ3LhwrRsrTMywdGKzWEj0kzur+P60j6 qVMIizZvP8H6cqE9tmrgr+UOMwHXbTrES5tL/a3UAZ4IEofjefl1+cpeJLcaDNG1jLih pfo3ArevC2SpJWSY396g9WQBomqQlsHsi3G8b/SVK4CO1LdpmdXM8odxGWpg0xaUmSkb Gw8PmRbybjfV/XncQZp41QLm/uRrQpmF/PA8qAU/PwnKM+hjfHtk5ZUTakULQxx+/Dzj MuwfhU/y3G7ihD1hlBDjdPv718gd0Mp0BPPHia/eAHyaaHTxWNUezEyV+MJyV1JeLtHS 9ByA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v83si4673205pgb.461.2019.05.16.04.14.17; Thu, 16 May 2019 04:14:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727107AbfEPLND (ORCPT + 99 others); Thu, 16 May 2019 07:13:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35752 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727038AbfEPLNB (ORCPT ); Thu, 16 May 2019 07:13:01 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E2C583003C77; Thu, 16 May 2019 11:13:00 +0000 (UTC) Received: from thuth.com (ovpn-116-68.ams2.redhat.com [10.36.116.68]) by smtp.corp.redhat.com (Postfix) with ESMTP id 31B3918394; Thu, 16 May 2019 11:12:56 +0000 (UTC) From: Thomas Huth To: Christian Borntraeger , Janosch Frank , kvm@vger.kernel.org Cc: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , Shuah Khan , David Hildenbrand , Cornelia Huck , Andrew Jones , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-s390@vger.kernel.org Subject: [RFC PATCH 0/4] KVM selftests for s390x Date: Thu, 16 May 2019 13:12:49 +0200 Message-Id: <20190516111253.4494-1-thuth@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Thu, 16 May 2019 11:13:01 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series enables the KVM selftests for s390x. As a first test, the sync_regs from x86 has been adapted to s390x. Please note that the ucall() interface is not used yet - since s390x neither has PIO nor MMIO, this needs some more work first before it becomes usable (we likely should use a DIAG hypercall here, which is what the sync_reg test is currently using, too...). Thomas Huth (4): KVM: selftests: Guard struct kvm_vcpu_events with __KVM_HAVE_VCPU_EVENTS KVM: selftests: Align memory region addresses to 1M on s390x KVM: selftests: Add processor code for s390x KVM: selftests: Add the sync_regs test for s390x MAINTAINERS | 2 + tools/testing/selftests/kvm/Makefile | 3 + .../testing/selftests/kvm/include/kvm_util.h | 2 + .../selftests/kvm/include/s390x/processor.h | 22 ++ tools/testing/selftests/kvm/lib/kvm_util.c | 24 +- .../selftests/kvm/lib/s390x/processor.c | 277 ++++++++++++++++++ .../selftests/kvm/s390x/sync_regs_test.c | 151 ++++++++++ 7 files changed, 476 insertions(+), 5 deletions(-) create mode 100644 tools/testing/selftests/kvm/include/s390x/processor.h create mode 100644 tools/testing/selftests/kvm/lib/s390x/processor.c create mode 100644 tools/testing/selftests/kvm/s390x/sync_regs_test.c -- 2.21.0