From: marc.zyngier@arm.com (Marc Zyngier)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 1/3] KVM/arm/arm64: add hooks for armv7 fp/simd lazy switch support
Date: Thu, 03 Dec 2015 19:24:06 +0000 [thread overview]
Message-ID: <566096D6.50402@arm.com> (raw)
In-Reply-To: <56609633.3030307@samsung.com>
On 03/12/15 19:21, Mario Smarduch wrote:
>
>
> On 12/3/2015 7:46 AM, Marc Zyngier wrote:
>> On 14/11/15 22:12, Mario Smarduch wrote:
>>> This patch adds vcpu fields to track lazy state, save host FPEXC, and
>>> offsets to fields.
>>>
>>> Signed-off-by: Mario Smarduch <m.smarduch@samsung.com>
>>> ---
>>> arch/arm/include/asm/kvm_host.h | 6 ++++++
>>> arch/arm/kernel/asm-offsets.c | 2 ++
>>> 2 files changed, 8 insertions(+)
>>>
>>> diff --git a/arch/arm/include/asm/kvm_host.h b/arch/arm/include/asm/kvm_host.h
>>> index 3df1e97..f1bf551 100644
>>> --- a/arch/arm/include/asm/kvm_host.h
>>> +++ b/arch/arm/include/asm/kvm_host.h
>>> @@ -107,6 +107,12 @@ struct kvm_vcpu_arch {
>>> /* Interrupt related fields */
>>> u32 irq_lines; /* IRQ and FIQ levels */
>>>
>>> + /* fp/simd dirty flag true if guest accessed register file */
>>> + bool vfp_dirty;
>>
>> I think we do not need this bool, because it is already represented by
>> the state of the trapping bits.
>
> The trapping bit state is lost on exit since they're cleared, no?
But that's what should actually be preserved, no? At the moment, you
maintain some side state to reflect what the trapping state is. You
might as well keep it around all the time.
Thanks,
M.
--
Jazz is not dead. It just smells funny...
next prev parent reply other threads:[~2015-12-03 19:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-14 22:12 [PATCH v4 0/3] KVM/arm/arm64: enhance armv7/8 fp/simd lazy switch Mario Smarduch
2015-11-14 22:12 ` [PATCH v4 1/3] KVM/arm/arm64: add hooks for armv7 fp/simd lazy switch support Mario Smarduch
2015-12-03 15:46 ` Marc Zyngier
2015-12-03 19:21 ` Mario Smarduch
2015-12-03 19:24 ` Marc Zyngier [this message]
2015-12-03 20:10 ` Mario Smarduch
2015-11-14 22:12 ` [PATCH v4 2/3] KVM/arm/arm64: enable enhanced armv7 fp/simd lazy switch Mario Smarduch
2015-12-03 15:58 ` Marc Zyngier
2015-12-04 1:07 ` Mario Smarduch
2015-11-14 22:12 ` [PATCH v4 3/3] KVM/arm/arm64: enable enhanced armv8 " Mario Smarduch
2015-12-03 16:13 ` Marc Zyngier
2015-12-04 1:11 ` Mario Smarduch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=566096D6.50402@arm.com \
--to=marc.zyngier@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).