Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751545AbbEFTit (ORCPT ); Wed, 6 May 2015 15:38:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47823 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750876AbbEFTir (ORCPT ); Wed, 6 May 2015 15:38:47 -0400 Message-ID: <554A6DC2.3010903@redhat.com> Date: Wed, 06 May 2015 21:38:42 +0200 From: Paolo Bonzini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Bandan Das CC: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, rkrcmar@redhat.com, guangrong.xiao@linux.intel.com, Yang Zhang , wanpeng.li@linux.intel.com Subject: Re: [PATCH 09/13] KVM: x86: save/load state on SMM switch References: <1430393772-27208-1-git-send-email-pbonzini@redhat.com> <1430393772-27208-10-git-send-email-pbonzini@redhat.com> <5549EF71.4080207@redhat.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1072 Lines: 29 On 06/05/2015 19:55, Bandan Das wrote: > Valid point. But I would say cryptic names will always be better then > hex offsets. It's a one time pain in the neck to get the defines > right. > > I found this header - > ftp://ftp.xskernel.org/soft/linux-src/bochs-20080511/cpu/smm.h > > Maybe we can pick it up ? I can sanity check the list and > make sure the offsets are correct if you prefer. Thanks, I like that header. :) No need to sanity check yourself. I'll have to adjust to define both 32-bit and 64-bit offsets. Ok to use just SMRAM32_OFS_xyz and SMRAM64_OFS_xyz? No need for LO32 and HI32, in particular. The one problem is that I am doing math on the offsets in some places. It would suck to save/restore 16 registers manually. Any suggestions? I will probably send v1 for review without the offsets. Paolo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/