Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6087025ybi; Wed, 31 Jul 2019 08:09:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqys8n/NtGV9iTO2WCCPD0mATLV98BrtZ+Q5r3YWlZXg9Ne3b/3ObH//wi6U1LgBKLwhO3vC X-Received: by 2002:a17:902:d81:: with SMTP id 1mr125857977plv.323.1564585782963; Wed, 31 Jul 2019 08:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564585782; cv=none; d=google.com; s=arc-20160816; b=H1htFEnqBMhshPKtP2HJ+nGsi7Xb7XM77sDAb1Qf1p/FEa6iY6OXo8L5igP5UdYXEp KOaY75bAgQ1aQDYWu3eiKsh0ovq6VjSKi2UAki3KHHTorDsAFD/FYSvZA1aAWgUoetU9 cUgsQGUN70VTBp7eDhj0ekFrFptR4qgz6+q60ox9esWArR6ibE49K/2xEfnD7ldnDebm q2/+OilBx5E314gRwHgOurCNj26YqG15TnNyNwufX2hrWqkzlDMY8NamAQjypGEv36O9 LFRkDhMg6YzVzyYrzzyNZzFLhXxKBo0Tng6oeVZ06TnmCTqtjRA/Qb0cpVlYtJNSrUYM 9h6A== 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=MjsxAGfWfxJ+Ya3eOw0s5xYt1f0yLLjtXQp0k3pen8g=; b=wGq+eCypCZRTazJNawfzYoCpT1A+zFF+tdKZJuk19xNCFSpSHemWO/0Ny/tZb4UwGc UAQHotGYVrns+jQZPVx8ODs5byEDSB5Ziy0KKHu6I4lq5JKXRH9Cw4eMZJpHy34vdV6J VdvHDjxVxEDRK19dWPScP4S2hStlBiAp7wJ8o0hHX6rHgOp1J0olv7Ct+nPq+J3NijTo zDuBWWRLHwsS26t3RzDibWv/Z+lfBKjKrshDO2HR8aT1Bh05p62R9bnaxLH3yeprXdBq 2wFYih6NnRCiHiNZMap2rN1CnP5NfWyPJUtQ8j1OuZ4lxl+zOUE4mDKpkfS29l5J+ciJ jzoA== 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 h11si29620597plr.34.2019.07.31.08.09.27; Wed, 31 Jul 2019 08:09:42 -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 S1729529AbfGaNcX (ORCPT + 99 others); Wed, 31 Jul 2019 09:32:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42752 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbfGaNcX (ORCPT ); Wed, 31 Jul 2019 09:32:23 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 165B430C1340; Wed, 31 Jul 2019 13:32:23 +0000 (UTC) Received: from thuth.com (dhcp-200-228.str.redhat.com [10.33.200.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3D78060852; Wed, 31 Jul 2019 13:32:21 +0000 (UTC) From: Thomas Huth To: kvm@vger.kernel.org, Christian Borntraeger , Janosch Frank Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, David Hildenbrand , Paolo Bonzini , Peter Xu , Andrew Jones Subject: [PATCH v2 0/3] KVM: selftests: Enable ucall and dirty_log_test on s390x Date: Wed, 31 Jul 2019 15:32:13 +0200 Message-Id: <20190731133216.5620-1-thuth@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Wed, 31 Jul 2019 13:32:23 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Implement the ucall() interface on s390x to be able to use the dirty_log_test KVM selftest on s390x, too. v2: - Split up ucall.c into architecture specific files - Removed some #ifdef __s390x__ in the dirty_log patch Thomas Huth (3): KVM: selftests: Split ucall.c into architecture specific files KVM: selftests: Implement ucall() for s390x KVM: selftests: Enable dirty_log_test on s390x tools/testing/selftests/kvm/Makefile | 9 +- tools/testing/selftests/kvm/dirty_log_test.c | 61 ++++++- .../testing/selftests/kvm/include/kvm_util.h | 8 +- .../testing/selftests/kvm/lib/aarch64/ucall.c | 112 +++++++++++++ tools/testing/selftests/kvm/lib/s390x/ucall.c | 56 +++++++ tools/testing/selftests/kvm/lib/ucall.c | 157 ------------------ .../testing/selftests/kvm/lib/x86_64/ucall.c | 56 +++++++ .../selftests/kvm/s390x/sync_regs_test.c | 6 +- 8 files changed, 287 insertions(+), 178 deletions(-) create mode 100644 tools/testing/selftests/kvm/lib/aarch64/ucall.c create mode 100644 tools/testing/selftests/kvm/lib/s390x/ucall.c delete mode 100644 tools/testing/selftests/kvm/lib/ucall.c create mode 100644 tools/testing/selftests/kvm/lib/x86_64/ucall.c -- 2.21.0