From mboxrd@z Thu Jan 1 00:00:00 1970 From: christoffer.dall@arm.com (Christoffer Dall) Date: Tue, 15 May 2018 12:55:30 +0200 Subject: [PATCH v7 07/16] KVM: arm64: Repurpose vcpu_arch.debug_flags for general-purpose flags In-Reply-To: <1525882385-29181-8-git-send-email-Dave.Martin@arm.com> References: <1525882385-29181-1-git-send-email-Dave.Martin@arm.com> <1525882385-29181-8-git-send-email-Dave.Martin@arm.com> Message-ID: <20180515105530.GD38551@C02W217FHV2R.local> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, May 09, 2018 at 05:12:56PM +0100, Dave Martin wrote: > In struct vcpu_arch, the debug_flags field is used to store > debug-related flags about the vcpu state. > > Since we are about to add some more flags related to FPSIMD and > SVE, it makes sense to add them to the existing flags field rather > than adding new fields. Since there is only one debug_flags flag > defined so far, there is plenty of free space for expansion. > > In preparation for adding more flags, this patch renames the > debug_flags field to simply "flags", and updates comments > appropriately. > > The flag definitions are also moved to , since > their presence in was for purely historical > reasons: these definitions are not used from asm any more, and not > very likely to be as more Hyp asm is migrated to C. > > KVM_ARM64_DEBUG_DIRTY_SHIFT has not been used since commit > 1ea66d27e7b0 ("arm64: KVM: Move away from the assembly version of > the world switch"), so this patch gets rid of that too. > > No functional change. > > Signed-off-by: Dave Martin > Reviewed-by: Marc Zyngier > Acked-by: Christoffer Dall