All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Zyngier <marc.zyngier@arm.com>
To: Pavel Fedin <p.fedin@samsung.com>,
	'Christoffer Dall' <christoffer.dall@linaro.org>,
	kvmarm@lists.cs.columbia.edu,
	linux-arm-kernel@lists.infradead.org
Cc: kvm@vger.kernel.org, 'Andre Przywara' <andre.przywara@arm.com>,
	'Peter Maydell' <peter.maydell@linaro.org>,
	'Eric Auger' <eric.auger@linaro.org>
Subject: Re: [PATCH] KVM: arm/arm64: Add VGICv3 save/restore API documentation
Date: Fri, 09 Oct 2015 09:29:35 +0100	[thread overview]
Message-ID: <56177AEF.50304@arm.com> (raw)
In-Reply-To: <00ec01d10269$f6c82af0$e45880d0$@samsung.com>

On 09/10/15 09:10, Pavel Fedin wrote:
>  Hello!
> 
>> How do you reconcile the two? What's the point of trying to shoehorn a
>> different concept into the existing API?
> 
>  Keeping amount of #define's as small as possible, and try to reuse everything that can be reused.

Reusing existing code is a noble goal, but I think that having clear
abstractions and following the architecture trumps it completely.

Experience has shown that trying to be clever with userspace interfaces
comes and bites us in the rear sooner or later. Not enough bits, being
unable to represent valid architecture features, pointlessly complicated
code that is hard to maintain. Those are the things I care about today.

So a #define is completely free, additional code is still very cheap. My
brain cells are few, and I like to look at the code and get this warm
fuzzy feeling that it is doing the right thing.

Having separate interfaces for different devices is a very good way to
ensure the above.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...

WARNING: multiple messages have this Message-ID (diff)
From: marc.zyngier@arm.com (Marc Zyngier)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] KVM: arm/arm64: Add VGICv3 save/restore API documentation
Date: Fri, 09 Oct 2015 09:29:35 +0100	[thread overview]
Message-ID: <56177AEF.50304@arm.com> (raw)
In-Reply-To: <00ec01d10269$f6c82af0$e45880d0$@samsung.com>

On 09/10/15 09:10, Pavel Fedin wrote:
>  Hello!
> 
>> How do you reconcile the two? What's the point of trying to shoehorn a
>> different concept into the existing API?
> 
>  Keeping amount of #define's as small as possible, and try to reuse everything that can be reused.

Reusing existing code is a noble goal, but I think that having clear
abstractions and following the architecture trumps it completely.

Experience has shown that trying to be clever with userspace interfaces
comes and bites us in the rear sooner or later. Not enough bits, being
unable to represent valid architecture features, pointlessly complicated
code that is hard to maintain. Those are the things I care about today.

So a #define is completely free, additional code is still very cheap. My
brain cells are few, and I like to look at the code and get this warm
fuzzy feeling that it is doing the right thing.

Having separate interfaces for different devices is a very good way to
ensure the above.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...

  reply	other threads:[~2015-10-09  8:29 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-07 19:50 [PATCH] KVM: arm/arm64: Add VGICv3 save/restore API documentation Christoffer Dall
2015-10-07 19:50 ` Christoffer Dall
2015-10-08  7:17 ` Pavel Fedin
2015-10-08  7:17   ` Pavel Fedin
2015-10-08  8:23   ` Christoffer Dall
2015-10-08  8:23     ` Christoffer Dall
2015-10-08  9:10     ` Pavel Fedin
2015-10-08  9:10       ` Pavel Fedin
2015-10-08  9:28       ` Christoffer Dall
2015-10-08  9:28         ` Christoffer Dall
2015-10-08 10:14         ` Marc Zyngier
2015-10-08 10:14           ` Marc Zyngier
2015-10-08 12:28           ` Pavel Fedin
2015-10-08 12:28             ` Pavel Fedin
2015-10-08 12:36             ` Christoffer Dall
2015-10-08 12:36               ` Christoffer Dall
2015-10-08 12:45               ` Pavel Fedin
2015-10-08 12:45                 ` Pavel Fedin
2015-10-08 12:51                 ` Marc Zyngier
2015-10-08 12:51                   ` Marc Zyngier
2015-10-08 12:55                 ` Peter Maydell
2015-10-08 12:55                   ` Peter Maydell
2015-10-08 13:28                   ` [Qemu-devel] " Pavel Fedin
2015-10-08 13:37                     ` Peter Maydell
2015-10-08 14:29                       ` Pavel Fedin
2015-10-08 10:25       ` Peter Maydell
2015-10-08 10:25         ` Peter Maydell
2015-10-09  7:30 ` Pavel Fedin
2015-10-09  7:30   ` Pavel Fedin
2015-10-09  8:06   ` Marc Zyngier
2015-10-09  8:06     ` Marc Zyngier
2015-10-09  8:10     ` Pavel Fedin
2015-10-09  8:10       ` Pavel Fedin
2015-10-09  8:29       ` Marc Zyngier [this message]
2015-10-09  8:29         ` Marc Zyngier

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=56177AEF.50304@arm.com \
    --to=marc.zyngier@arm.com \
    --cc=andre.przywara@arm.com \
    --cc=christoffer.dall@linaro.org \
    --cc=eric.auger@linaro.org \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=p.fedin@samsung.com \
    --cc=peter.maydell@linaro.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.