All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	George Dunlap <george.dunlap@citrix.com>
Subject: Re: [PATCH 2/4] x86/P2M: un-indent write_p2m_entry()
Date: Wed, 24 Apr 2024 11:16:38 +0200	[thread overview]
Message-ID: <ZijN9l4crUTi_-LA@macbook> (raw)
In-Reply-To: <52b4b0d8-1761-45c7-b6e6-91e1c308209c@suse.com>

On Tue, Apr 23, 2024 at 04:32:14PM +0200, Jan Beulich wrote:
> Drop the inner scope that was left from earlier if/else removal. Take
> the opportunity and make the paging_unlock() invocation common to
> success and error paths, though.

TBH I'm not sure I prefer the fact to continue function execution
after an error is found, I specially dislike that you have to add a
!rc check to the nestedhvm conditional block, and because anything
that we further add to the function would also need a !rc check.

> 
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Acked-by: Roger Pau Monné <roger.pau@citrix.com>

Albeit I do prefer the extra call to paging_unlock() and early return
from the function in case of error.

Thanks, Roger.


  reply	other threads:[~2024-04-24  9:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-23 14:30 [PATCH 0/4] x86/mm: assorted adjustments Jan Beulich
2024-04-23 14:31 ` [PATCH 1/4] x86/P2M: write_p2m_entry() is HVM-only anyway Jan Beulich
2024-04-23 19:29   ` Andrew Cooper
2024-04-24  6:36     ` Jan Beulich
2024-04-24  8:49       ` Jan Beulich
2024-04-23 14:32 ` [PATCH 2/4] x86/P2M: un-indent write_p2m_entry() Jan Beulich
2024-04-24  9:16   ` Roger Pau Monné [this message]
2024-04-24 11:39     ` Jan Beulich
2024-04-23 14:32 ` [PATCH 3/4] x86/paging: vCPU host mode is always set Jan Beulich
2024-04-24  9:34   ` Roger Pau Monné
2024-04-24 11:41     ` Jan Beulich
2024-04-24 13:01       ` Roger Pau Monné
2024-04-23 14:33 ` [PATCH 4/4] x86/shadow: correct shadow_vcpu_init()'s comment Jan Beulich
2024-04-24 10:06   ` Roger Pau Monné
2024-04-24 11:44     ` Jan Beulich
2024-04-24 12:58       ` Roger Pau Monné

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=ZijN9l4crUTi_-LA@macbook \
    --to=roger.pau@citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=george.dunlap@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=xen-devel@lists.xenproject.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.