qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

spapr: Fix typos in comments and macro indentation

This commit fixes typos in spapr_vio_reg_to_irq() comments and a macro
indentation.

Signed-off-by: Gustavo Romero <gromero@linux.ibm.com>
Message-Id: <1590710681-12873-1-git-send-email-gromero@linux.ibm.com>
Acked-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>

authored by

Gustavo Romero and committed by
David Gibson
7861e083 a816f2d6

+4 -4
+3 -3
hw/ppc/spapr_vio.c
··· 420 420 } 421 421 422 422 /* 423 - * The register property of a VIO device is defined in livirt using 423 + * The register property of a VIO device is defined in libvirt using 424 424 * 0x1000 as a base register number plus a 0x1000 increment. For the 425 425 * VIO tty device, the base number is changed to 0x30000000. QEMU uses 426 426 * a base register number of 0x71000000 and then a simple increment. ··· 450 450 451 451 } else if (reg >= 0x30000000) { 452 452 /* 453 - * VIO tty devices register values, when allocated by livirt, 453 + * VIO tty devices register values, when allocated by libvirt, 454 454 * are mapped in range [0xf0 - 0xff], gives us a maximum of 16 455 455 * vtys. 456 456 */ ··· 459 459 } else { 460 460 /* 461 461 * Other VIO devices register values, when allocated by 462 - * livirt, should be mapped in range [0x00 - 0xef]. Conflicts 462 + * libvirt, should be mapped in range [0x00 - 0xef]. Conflicts 463 463 * will be detected when IRQ is claimed. 464 464 */ 465 465 irq = (reg >> 12) & 0xff;
+1 -1
include/hw/ppc/xive_regs.h
··· 71 71 * QW word 2 contains the valid bit at the top and other fields 72 72 * depending on the QW. 73 73 */ 74 - #define TM_WORD2 0x8 74 + #define TM_WORD2 0x8 75 75 #define TM_QW0W2_VU PPC_BIT32(0) 76 76 #define TM_QW0W2_LOGIC_SERV PPC_BITMASK32(1, 31) /* XX 2,31 ? */ 77 77 #define TM_QW1W2_VO PPC_BIT32(0)