From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Mullins Subject: Re: [RFC] KVM: SVM: ignore type when setting segment registers Date: Tue, 30 May 2017 11:03:59 -0700 Message-ID: <20170530180358.GA13648@hydra.tuxags.com> References: <1496064244-14785-1-git-send-email-gi-oh.kim@profitbricks.com> <20170530125420.GA19724@potion> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: andre.przywara@amd.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org To: Radim =?utf-8?B?S3LEjW3DocWZ?= , Gioh Kim Return-path: Content-Disposition: inline In-Reply-To: <20170530125420.GA19724@potion> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Tue, May 30, 2017 at 02:54:21PM +0200, Radim Krčmář wrote: > 2017-05-29 15:24+0200, Gioh Kim: > > If so, why type is checked when setting segment registers? > > No idea. 19bca6ab75d8 ("KVM: SVM: Fix cross vendor migration issue with > unusable bit") also moved the assigment up to initialize it before use > and I think that is enough. Was this perhaps intended to instead check for a zero selector, which is also an unusable segment?