|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] vpci/msix: reduce indentation in msix_write PBA handling
commit 59c00502b2395b11a12cef6b231dd47e690f3dd2
Author: Roger Pau Monné <roger.pau@xxxxxxxxxx>
AuthorDate: Tue Mar 1 10:02:13 2022 +0100
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Mar 1 10:02:13 2022 +0100
vpci/msix: reduce indentation in msix_write PBA handling
No functional change.
Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
---
xen/drivers/vpci/msix.c | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/xen/drivers/vpci/msix.c b/xen/drivers/vpci/msix.c
index 2ab4079412..a1fa7a5f13 100644
--- a/xen/drivers/vpci/msix.c
+++ b/xen/drivers/vpci/msix.c
@@ -275,23 +275,24 @@ static int cf_check msix_write(
if ( VMSIX_ADDR_IN_RANGE(addr, msix->pdev->vpci, VPCI_MSIX_PBA) )
{
- /* Ignore writes to PBA for DomUs, it's behavior is undefined. */
- if ( is_hardware_domain(d) )
+
+ if ( !is_hardware_domain(d) )
+ /* Ignore writes to PBA for DomUs, it's behavior is undefined. */
+ return X86EMUL_OKAY;
+
+ switch ( len )
{
- switch ( len )
- {
- case 4:
- writel(data, addr);
- break;
+ case 4:
+ writel(data, addr);
+ break;
- case 8:
- writeq(data, addr);
- break;
+ case 8:
+ writeq(data, addr);
+ break;
- default:
- ASSERT_UNREACHABLE();
- break;
- }
+ default:
+ ASSERT_UNREACHABLE();
+ break;
}
return X86EMUL_OKAY;
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |