From nobody Tue Feb 10 05:46:41 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1605695160; cv=none; d=zohomail.com; s=zohoarc; b=lt4VvIa4SSnQ4gCXOIOlaADow3E+Z5ENjUX3k+5ax4REDAoh+zfDRpC8ehRY+ECVz4nJWtj512cMZwiVnOyjeS7eCvVvwPb0jYZHcHaMTlvN32n9Jl8bNRyugi3eDahx5wcoV567zaoDnwH104fBlh7AMAQ/qVnVj2fiuK5bRgE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605695160; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=MoDrbZFRPYimX08Mu25vJdw6TEjHqrR/m6bx2o/PoHM=; b=gkSf4JiPGMYCLJD+95mH8DfCaFQ/xwZIlQfTvEaYq6fmcPokITzP99VQkwtjWe3vW92Cfmiiaxgdb4dWhWbVN6DPxxpvO6OmFoOe7q6NHgcjOvOmiIO5+KQG1rc+ZjykJerUee66dwGW4GHO0l1mNtobq+RJHa2yb0nr6Eeo6FI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1605695160811531.0280607194525; Wed, 18 Nov 2020 02:26:00 -0800 (PST) Received: from localhost ([::1]:44420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfKf1-0008Et-Ll for importer@patchew.org; Wed, 18 Nov 2020 05:25:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfKZ6-0000Bw-3l for qemu-devel@nongnu.org; Wed, 18 Nov 2020 05:19:52 -0500 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]:42619) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfKZ4-0003fb-KB for qemu-devel@nongnu.org; Wed, 18 Nov 2020 05:19:51 -0500 Received: by mail-ej1-x629.google.com with SMTP id i19so1947117ejx.9 for ; Wed, 18 Nov 2020 02:19:50 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id f24sm13230052edx.90.2020.11.18.02.19.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2020 02:19:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MoDrbZFRPYimX08Mu25vJdw6TEjHqrR/m6bx2o/PoHM=; b=KYShNIh1dQyFHKFjeoQdbCUKn5QMO2XP6eH7WgguUS1ckLyAxskXKgDL6qzwNWS45F +/0BRH9Um92QF0PzWAyT/BMassTExi0fOj4qXvjBVycjAF1vzh1OLihNd+tbD34iQcnP Q/766l++5kpJa+W9gRxtGe7/WOhF+aIUGgNSYXN+Z3Epuv574mLTYOEuh7QmCHLzzWPI K03Tfp0zM7nYkz876eN3qsN3AjYyBCuTqajBxvR9CJczu4gFHk4J7NtJOg0LD/ZLWlt9 Cl98XCwTAWaAO7YQuqaSM0UOSh4cchoRC+XoguJL7u6W9ZzVwaOPYnbTc8JW5wZf2CXv OJGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=MoDrbZFRPYimX08Mu25vJdw6TEjHqrR/m6bx2o/PoHM=; b=pKlT8yoIBxFykCIt8u1eVtEQIHfbB+t1K7HIiZwefqr3jzGIm1rYbHtp1KYMIh3b41 lwZzuX94KxJREynLM1bfkEOVzrjDx//mXdS+kfe1Hpi3v+UXddDcP7xpo5e3qtMgBlF/ cODPB85vaiicArfk4KHp/n8MI53VgLN606CdM6BGdZ4rciei1KfIttfeEtpdEHkCR4XS 8+1uj1mcHW+70gjOqAcFMUAezu+Uup8+UACNib0dEVp4dZVUi2fE26Ollx9vJJBQv1A2 FQg64ieA7qvi9C+i11vHn7X62oa49ZXAq9Bf99vyqBVKScbHmFgGB3D8NVoMhKWZABLO j2Iw== X-Gm-Message-State: AOAM532uom41ABTe9h+2bVDm8ukS0wgmgTmlI27CfoxeJU92fO0U4IIZ F3kbN0hV5dK11RgeX/dxtDsXnIYzVEU= X-Google-Smtp-Source: ABdhPJzLNwXoIjbXAImDojoWloj19dg0z2k8RivJ6sIAOgpRweQ3XakJNh7DYwlzBrDRJMfrIr7lTg== X-Received: by 2002:a17:906:491a:: with SMTP id b26mr24326646ejq.385.1605694788983; Wed, 18 Nov 2020 02:19:48 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PULL 6/7] hvf: Fix segment selector format Date: Wed, 18 Nov 2020 11:19:39 +0100 Message-Id: <20201118101940.132594-7-pbonzini@redhat.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201118101940.132594-1-pbonzini@redhat.com> References: <20201118101940.132594-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=paolo.bonzini@gmail.com; helo=mail-ej1-x629.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jessica Clarke Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Jessica Clarke The Requested Privilege Level field is 2 bits, the Table Indicator field is 1 bit and the Index field is the remaining 15 bits, with TI=3D0 meaning GDT and TI=3D1 meaning LDT. Signed-off-by: Jessica Clarke Message-Id: <20201116200414.28286-1-jrtc27@jrtc27.com> Signed-off-by: Paolo Bonzini --- target/i386/hvf/x86.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/i386/hvf/x86.h b/target/i386/hvf/x86.h index 9e2c0039e6..782664c2ea 100644 --- a/target/i386/hvf/x86.h +++ b/target/i386/hvf/x86.h @@ -214,16 +214,16 @@ static inline uint32_t x86_call_gate_offset(x86_call_= gate *gate) return (uint32_t)((gate->offset1 << 16) | gate->offset0); } =20 -#define LDT_SEL 0 -#define GDT_SEL 1 +#define GDT_SEL 0 +#define LDT_SEL 1 =20 typedef struct x68_segment_selector { union { uint16_t sel; struct { - uint16_t rpl:3; + uint16_t rpl:2; uint16_t ti:1; - uint16_t index:12; + uint16_t index:13; }; }; } __attribute__ ((__packed__)) x68_segment_selector; --=20 2.28.0