From patchwork Fri Dec 11 01:23:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Wendling X-Patchwork-Id: 342366 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-26.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 563C6C1B0D8 for ; Fri, 11 Dec 2020 01:25:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 27A8F23DE5 for ; Fri, 11 Dec 2020 01:25:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394951AbgLKBYJ (ORCPT ); Thu, 10 Dec 2020 20:24:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389469AbgLKBYD (ORCPT ); Thu, 10 Dec 2020 20:24:03 -0500 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6571CC0613CF for ; Thu, 10 Dec 2020 17:23:23 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id t187so6871780ybf.10 for ; Thu, 10 Dec 2020 17:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=76I2HkR/QhH41Al/kavpSZwfOHx+HGfAs7s/cIpsiMQ=; b=v26DmsxffYDRU0SN13OvI97KA4NYXbgOXESuqmnU7acvsDpH+XEhpF4Mq5ih4E2Nhz PvuKDtqI5UeZ0ESZl48s2g+ferGE6tdYrvXccAmjkobyTOMSnhsk+r1GIcnUTQ9fUsf+ +udv2LLfV623oLgbJAhIPyTPC2/Z5VkbufNxrc6IEVSGnNJjcxH+tu9LtI7GdYQeg8f/ 2wu+W3m/t4WhECfKWze5Ddyec5+RHpIY4KrtRIK2R0cM5u1FJX5ezs4z+XpikFvl+LGg La+IqcaIs4XK2LwYmGt7xk0iUvsRpxS+lqvmGS5mIMHIhVA5QqOyVy9O7JH8+2zLUQqE LV3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=76I2HkR/QhH41Al/kavpSZwfOHx+HGfAs7s/cIpsiMQ=; b=gHiwJ/apJ4QaKa1xRGB5qmRF1ccJ3F27W8SNQj5+IJFSMaFaVdlJm2ypXN6zDNF9io opFO8EKMWctppjPM2cXYsBMnxL3vAdSsCgnU3iFoFja8HnBIPeeO4cI0blPQpEBifnYj eGTuGh6LdgKzdJkkAp73MPfpGxFX+WhtW+XMUKTH9cNViW3+QRca77Zm1v4UFp+FEYTo qCf0rcQvoEBuiHJ1c0AZYvvnfaI5MUe2WVhkNzytG28fWRDBScy6jTMwPxPjA8TnY4SD R2cq3hhfQ6kz//NeklJkg/ItBZAXuuYf5HtU/k0qY5bF4U7RGF/PqherhmAnx8Yt3dJw 5JxA== X-Gm-Message-State: AOAM532IcNc3A6k7w68/wt4jZP/a3EzekeE5nQUPLOk6h1Ot1n2SKlE5 6nWOhopXEvmNyIVQuiNmnjwCi/UC X-Google-Smtp-Source: ABdhPJzXE1mavmdvah8ChyCslZLxYWJzdsnmppMUbOd4X2HEw6nIUy3OJgKoq6nRbulcMKSwI+gIwb8HCQ== Sender: "morbo via sendgmr" X-Received: from fawn.svl.corp.google.com ([2620:15c:2cd:202:7220:84ff:fe0f:9f6a]) (user=morbo job=sendgmr) by 2002:a25:ca17:: with SMTP id a23mr16202134ybg.229.1607649802623; Thu, 10 Dec 2020 17:23:22 -0800 (PST) Date: Thu, 10 Dec 2020 17:23:17 -0800 In-Reply-To: Message-Id: <20201211012317.3722214-1-morbo@google.com> Mime-Version: 1.0 References: X-Mailer: git-send-email 2.29.2.576.ga3fc446d84-goog Subject: [PATCH v2] selftests: kvm: remove reassignment of non-absolute variables From: Bill Wendling To: Paolo Bonzini , linux-kselftest@vger.kernel.org, kvm@vger.kernel.org, Sean Christopherson Cc: Benjamin Herrenschmidt , Shuah Khan , Bill Wendling , Jian Cai Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Clang's integrated assembler does not allow symbols with non-absolute values to be reassigned. Modify the interrupt entry loop macro to be compatible with IAS by using a label and an offset. Cc: Jian Cai Signed-off-by: Bill Wendling References: https://lore.kernel.org/lkml/20200714233024.1789985-1-caij2003@gmail.com/ Reviewed-by: Jim Mattson --- tools/testing/selftests/kvm/lib/x86_64/handlers.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/kvm/lib/x86_64/handlers.S b/tools/testing/selftests/kvm/lib/x86_64/handlers.S index aaf7bc7d2ce1..7629819734af 100644 --- a/tools/testing/selftests/kvm/lib/x86_64/handlers.S +++ b/tools/testing/selftests/kvm/lib/x86_64/handlers.S @@ -54,9 +54,9 @@ idt_handlers: .align 8 /* Fetch current address and append it to idt_handlers. */ - current_handler = . +666 : .pushsection .rodata -.quad current_handler + .quad 666b .popsection .if ! \has_error