[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH v2 3/7] xen/vm-events: Move monitor_domctl to common-side.
- To: Tamas K Lengyel <tamas@xxxxxxxxxxxxx>
- From: Corneliu ZUZU <czuzu@xxxxxxxxxxxxxxx>
- Date: Thu, 11 Feb 2016 09:21:19 +0200
- Cc: Kevin Tian <kevin.tian@xxxxxxxxx>, Keir Fraser <keir@xxxxxxx>, Ian Campbell <ian.campbell@xxxxxxxxxx>, Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>, Jun Nakajima <jun.nakajima@xxxxxxxxx>
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Delivery-date: Thu, 11 Feb 2016 07:21:46 +0000
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=bitdefender.com; b=vs3zWWa82IVg2A051Bt3x0F9qEPfXnEkdEQihEuOkq5PPRrxlbt9K/8rFx2Fp7USk/NDxigRgPOfKWUKHi6R5Jxt+aqzQJyJsvbz2McD8uCjGczCQAI5w2g3YNa/3v74utJ03afyXgctlJN57KrFbmDacDiXPydC/2/aHjvGLor0RwDEk1lXvZiNTHwignJR106PPs7AyaL/Dmw7zEZ3AXped5ABCxpyW4Yuys7snsYB5DaIujrEW6XsNOIngIIFXxPxmc+9yE2yVvefb1W76E1U/aTjuhWxDJ5HLQsL2bWutpDLv9IiR5SvxsGgteeiQy3FOobu0GkXnBKgUSj7yA==; h=Received:Received:Received:Received:Received:Subject:To:References:Cc:From:Message-ID:Date:User-Agent:MIME-Version:In-Reply-To:Content-Type:X-BitDefender-Scanner:X-BitDefender-Spam:X-BitDefender-SpamStamp:X-BitDefender-CF-Stamp;
- List-id: Xen developer discussion <xen-devel.lists.xen.org>
On 2/10/2016 7:56 PM, Tamas K Lengyel
wrote:
Technically, you don't need to add anything unless you implement
that feature.
E.g. the ARM Kconfig currently contains no mention of these options,
since they're not implemented there @ all.
And when implemented they're only added once and it's one line
"select HAS_....", it's not like you have to specify a command-line
parameter when building Xen or something like that, so IMO they
don't add considerable complexity.
And after all, these kind of situations (i.e.
activating/deactivating code based on architecture) are why
arch-specific Kconfigs exist, right? Why not use them? :)
What if a 3rd architecture comes into place, you'd have to move them
back from common to the arch-side and get back to the code
duplication we just got rid of?
And if you then also implement it for the 3rd architecture, you move
them back to common from the arch-side?
It seems uncomfortable having to keep track of all architectures
when wanting to add such a feature implementation for just one of
them.
I don't know what & if such plans exist for Xen, but why make
that future process of adding in support for other architectures
unnecessarily complicated,
even if it won't happen soon?
Also, IMO the code is clearer like this:
* you know what parts interest you when implementing parts of these
features/when debugging/when simply looking @ the code
* the #ifdefs make it possible for that code to be put in common
=> that makes it *clear* that those code parts are NOT
architecture specific and their implementation can be safely used
for all architectures.
* code duplication is avoided => avoid having to reflect a
modification when it happens in more places than it would be
necessary
There are disadvantages, everything has a downside but IMHO they are
minor compared to the alternative.
Ian, any comments on this? :)
Thank you,
Corneliu.
|
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|