All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Zyngier <marc.zyngier@arm.com>
To: Dave Martin <Dave.Martin@arm.com>
Cc: Andre Przywara <andre.przywara@arm.com>,
	kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	kvmarm@lists.cs.columbia.edu
Subject: Re: [PATCH 0/2] KVM: arm/arm64: Add VCPU workarounds firmware register
Date: Tue, 22 Jan 2019 11:11:09 +0000	[thread overview]
Message-ID: <86a7jt9cc2.wl-marc.zyngier@arm.com> (raw)
In-Reply-To: <20190122101657.GE3578@e103592.cambridge.arm.com>

On Tue, 22 Jan 2019 10:17:00 +0000,
Dave Martin <Dave.Martin@arm.com> wrote:
> 
> On Mon, Jan 07, 2019 at 12:05:35PM +0000, Andre Przywara wrote:
> > Workarounds for Spectre variant 2 or 4 vulnerabilities require some help
> > from the firmware, so KVM implements an interface to provide that for
> > guests. When such a guest is migrated, we want to make sure we don't
> > loose the protection the guest relies on.
> > 
> > This introduces two new firmware registers in KVM's GET/SET_ONE_REG
> > interface, so userland can save the level of protection implemented by
> > the hypervisor and used by the guest. Upon restoring these registers,
> > we make sure we don't downgrade and reject any values that would mean
> > weaker protection.
> 
> Just trolling here, but could we treat these as immutable, like the ID
> registers?  
> 
> We don't support migration between nodes that are "too different" in any
> case, so I wonder if adding complex logic to compare vulnerabilities and
> workarounds is liable to create more problems than it solves...

And that's exactly the case we're trying to avoid. Two instances of
the same HW. One with firmware mitigations, one without. Migrating in
one direction is perfectly safe, migrating in the other isn't.

It is not about migrating to different HW at all.

	M.

-- 
Jazz is not dead, it just smell funny.

WARNING: multiple messages have this Message-ID (diff)
From: Marc Zyngier <marc.zyngier@arm.com>
To: Dave Martin <Dave.Martin@arm.com>
Cc: Andre Przywara <andre.przywara@arm.com>,
	kvm@vger.kernel.org, Christoffer Dall <christoffer.dall@arm.com>,
	linux-arm-kernel@lists.infradead.org,
	kvmarm@lists.cs.columbia.edu
Subject: Re: [PATCH 0/2] KVM: arm/arm64: Add VCPU workarounds firmware register
Date: Tue, 22 Jan 2019 11:11:09 +0000	[thread overview]
Message-ID: <86a7jt9cc2.wl-marc.zyngier@arm.com> (raw)
In-Reply-To: <20190122101657.GE3578@e103592.cambridge.arm.com>

On Tue, 22 Jan 2019 10:17:00 +0000,
Dave Martin <Dave.Martin@arm.com> wrote:
> 
> On Mon, Jan 07, 2019 at 12:05:35PM +0000, Andre Przywara wrote:
> > Workarounds for Spectre variant 2 or 4 vulnerabilities require some help
> > from the firmware, so KVM implements an interface to provide that for
> > guests. When such a guest is migrated, we want to make sure we don't
> > loose the protection the guest relies on.
> > 
> > This introduces two new firmware registers in KVM's GET/SET_ONE_REG
> > interface, so userland can save the level of protection implemented by
> > the hypervisor and used by the guest. Upon restoring these registers,
> > we make sure we don't downgrade and reject any values that would mean
> > weaker protection.
> 
> Just trolling here, but could we treat these as immutable, like the ID
> registers?  
> 
> We don't support migration between nodes that are "too different" in any
> case, so I wonder if adding complex logic to compare vulnerabilities and
> workarounds is liable to create more problems than it solves...

And that's exactly the case we're trying to avoid. Two instances of
the same HW. One with firmware mitigations, one without. Migrating in
one direction is perfectly safe, migrating in the other isn't.

It is not about migrating to different HW at all.

	M.

-- 
Jazz is not dead, it just smell funny.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2019-01-22 11:11 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-07 12:05 [PATCH 0/2] KVM: arm/arm64: Add VCPU workarounds firmware register Andre Przywara
2019-01-07 12:05 ` Andre Przywara
2019-01-07 12:05 ` [PATCH 1/2] KVM: arm/arm64: Add save/restore support for firmware workaround state Andre Przywara
2019-01-07 12:05   ` Andre Przywara
2019-01-07 13:17   ` Steven Price
2019-01-07 13:17     ` Steven Price
2019-01-21 17:04     ` Andre Przywara
2019-01-21 17:04       ` Andre Przywara
2019-02-22 12:26     ` Andre Przywara
2019-02-22 12:26       ` Andre Przywara
2019-01-22 15:17   ` Dave Martin
2019-01-22 15:17     ` Dave Martin
2019-01-25 14:46     ` Andre Przywara
2019-01-25 14:46       ` Andre Przywara
2019-01-29 21:32       ` Dave Martin
2019-01-29 21:32         ` Dave Martin
2019-01-30 11:39         ` Andre Przywara
2019-01-30 11:39           ` Andre Przywara
2019-01-30 12:07           ` Dave Martin
2019-01-30 12:07             ` Dave Martin
2019-02-15  9:58           ` Andre Przywara
2019-02-15  9:58             ` Andre Przywara
2019-02-15 11:42             ` Marc Zyngier
2019-02-15 11:42               ` Marc Zyngier
2019-02-15 17:26               ` Dave Martin
2019-02-15 17:26                 ` Dave Martin
2019-02-18  9:07                 ` Marc Zyngier
2019-02-18  9:07                   ` Marc Zyngier
2019-02-18 10:28                   ` Dave Martin
2019-02-18 10:28                     ` Dave Martin
2019-02-18 10:59                     ` Marc Zyngier
2019-02-18 10:59                       ` Marc Zyngier
2019-02-18 11:29                   ` André Przywara
2019-02-18 11:29                     ` André Przywara
2019-02-18 14:15                     ` Marc Zyngier
2019-02-18 14:15                       ` Marc Zyngier
2019-01-07 12:05 ` [PATCH 2/2] KVM: doc: add API documentation on the KVM_REG_ARM_WORKAROUNDS register Andre Przywara
2019-01-07 12:05   ` Andre Przywara
2019-01-22 10:17 ` [PATCH 0/2] KVM: arm/arm64: Add VCPU workarounds firmware register Dave Martin
2019-01-22 10:17   ` Dave Martin
2019-01-22 10:41   ` Andre Przywara
2019-01-22 10:41     ` Andre Przywara
2019-01-22 11:11   ` Marc Zyngier [this message]
2019-01-22 11:11     ` Marc Zyngier
2019-01-22 13:56     ` Dave Martin
2019-01-22 13:56       ` Dave Martin
2019-01-22 14:51       ` Marc Zyngier
2019-01-22 14:51         ` Marc Zyngier
2019-01-22 15:28         ` Dave Martin
2019-01-22 15:28           ` Dave Martin

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=86a7jt9cc2.wl-marc.zyngier@arm.com \
    --to=marc.zyngier@arm.com \
    --cc=Dave.Martin@arm.com \
    --cc=andre.przywara@arm.com \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.cs.columbia.edu \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.