Re: [Qemu-devel] [PATCH 1/3] ahci: add ahci_get_num_ports

2017-06-25 Thread Philippe Mathieu-Daudé
On Fri, Jun 23, 2017 at 7:09 PM, John Snow wrote: > Instead of reaching into the PCI state, allow the AHCIDevice to > respond with how many ports it has. > > Signed-off-by: John Snow Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé > --- > hw/i386/pc_q35.c | 4 ++--

[Qemu-devel] [PATCH 1/3] ahci: add ahci_get_num_ports

2017-06-23 Thread John Snow
Instead of reaching into the PCI state, allow the AHCIDevice to respond with how many ports it has. Signed-off-by: John Snow --- hw/i386/pc_q35.c | 4 ++-- hw/ide/ahci.c | 8 hw/mips/boston.c | 4 ++-- include/hw/ide/ahci.h | 1 + 4 files changed, 13 insertions(+), 4 d