From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A9C4C4332F for ; Thu, 21 Oct 2021 11:49:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1550160FC1 for ; Thu, 21 Oct 2021 11:49:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230452AbhJULvv (ORCPT ); Thu, 21 Oct 2021 07:51:51 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:23122 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230522AbhJULvf (ORCPT ); Thu, 21 Oct 2021 07:51:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634816959; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PInoKV72OyGR98wYwrqitYj1CXMn3EIDFEwTKRKsKaQ=; b=Mol25zctageqC97q519suX97eM4TkGMusgylvEm/c7sIG+YExrDRLIFf4d42FuvXvpEUTJ PXFwBHWPgx8aMVLkueH5t8VARfR5bXRiPIL5cIkrKuCj464pYvtnlcxyolXbP1aR5bdXfp YFFZ+5qWr+IrCBwpCtpPbMvrlvjx0kc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-501-zInoqmHkMqyelK0yJEtKUA-1; Thu, 21 Oct 2021 07:49:14 -0400 X-MC-Unique: zInoqmHkMqyelK0yJEtKUA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B4ABF80668D; Thu, 21 Oct 2021 11:49:12 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 17E2D6788F; Thu, 21 Oct 2021 11:49:12 +0000 (UTC) From: Paolo Bonzini To: kvm@vger.kernel.org Cc: aaronlewis@google.com, jmattson@google.com, zxwang42@gmail.com, marcorr@google.com, seanjc@google.com, jroedel@suse.de, varad.gautam@suse.com Subject: [PATCH kvm-unit-tests 2/9] x86: fix call to set_gdt_entry Date: Thu, 21 Oct 2021 07:49:03 -0400 Message-Id: <20211021114910.1347278-3-pbonzini@redhat.com> In-Reply-To: <20211021114910.1347278-1-pbonzini@redhat.com> References: <20211021114910.1347278-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org The low four bits of the fourth argument are unused, make them zero in all the callers. Signed-off-by: Paolo Bonzini --- lib/x86/desc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/x86/desc.c b/lib/x86/desc.c index e7378c1..b691c9b 100644 --- a/lib/x86/desc.c +++ b/lib/x86/desc.c @@ -336,7 +336,7 @@ void setup_tss32(void) tss_intr.ds = tss_intr.es = tss_intr.fs = tss_intr.ss = 0x10; tss_intr.gs = read_gs(); tss_intr.iomap_base = (u16)desc_size; - set_gdt_entry(TSS_INTR, (u32)&tss_intr, desc_size - 1, 0x89, 0x0f); + set_gdt_entry(TSS_INTR, (u32)&tss_intr, desc_size - 1, 0x89, 0); } void set_intr_task_gate(int e, void *fn) -- 2.27.0