Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6109352ybi; Wed, 31 Jul 2019 08:29:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4/Ei+vTMkiaXKo8whKkwqsUlcIwJEm7DUPxBy7kpOCRO3R1E+qWQ8t6vA7FwVN+t7rray X-Received: by 2002:a63:b919:: with SMTP id z25mr113385162pge.201.1564586973160; Wed, 31 Jul 2019 08:29:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564586973; cv=none; d=google.com; s=arc-20160816; b=aIuxJxdbjcI9/i6B2dq/d4NxJLfC/biE+J7unC/5NU/s5FLDhnI2G2JK1hojaDgDZf xRd0DNuOMELh/Y7E80Nsa5uJyD2bqJ3wTNZaXu495vMry/4fRo6I0lHBzc76HRETtccn 74Hd00rU88sQKh5jC5VeOMR93KZ5Fp5kGjhGpZ8SmFwZtiHjYPhdluPF1HXhTVAAH0V3 6jkuz3P9Y1gkOw1RljAGKMrN767+/jO+d9pYi26TqQ6fL4DQP+G/I6EinOCG0bhGVRH8 pAcU/5FLeUAVEvDUkHWPQSdMWqPPZQ7DtJf4T3WZLhJ+EYx9RmjutnTa5PqLmhvFVxhL 0E4A== 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=Sf8ITZh6C6a9kZ1g7rD+s9TAF3uOo7JgmsoV5kQhpI4=; b=iIkaGCkHCg5eaL3l7igZ16wi+sZDkHqDZnGADUbAm62safF6j1O8KO+57UJ0kQa7/Q WGuaeGF/eGm8Quqg7dTwOE4eRe0lgOnjAQdjNGhLY8dNtpHWlz+KXT+DcH0rB8Q7cIsM QvyarF+d7RiBM6V4RDzKemLeTgxq2AGJIQRkIJbg14F2xJFh99A998UQ/iN/QIna+LUH UzKN+w1aiC1/4DC19/G1ffBx36sKRKOm8mIpeFzMc+QpJct9Cl/laCyODtVdMO8lGRua qf1pcvnnQnQXRDukfCpRjbHdcUlx61+X6m2oM4bz2HjuD/fQwhUGs38b0dW50ITn8JsS qZWQ== 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 q11si1808388pjb.84.2019.07.31.08.29.18; Wed, 31 Jul 2019 08:29:33 -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 S1728675AbfGaPUq (ORCPT + 99 others); Wed, 31 Jul 2019 11:20:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21864 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730061AbfGaPUm (ORCPT ); Wed, 31 Jul 2019 11:20:42 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 58DA830860D2; Wed, 31 Jul 2019 15:15:30 +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 788C619C65; Wed, 31 Jul 2019 15:15:28 +0000 (UTC) From: Thomas Huth To: kvm@vger.kernel.org, Christian Borntraeger Cc: Janosch Frank , 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 v3 0/3] KVM: selftests: Enable ucall and dirty_log_test on s390x Date: Wed, 31 Jul 2019 17:15:22 +0200 Message-Id: <20190731151525.17156-1-thuth@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Wed, 31 Jul 2019 15:15:30 +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. v3: - Fix compilation issue on aarch64 (thanks to Andrew for testing it!) - Added Reviewed-bys 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