[PATCH] hw/sd/sdcard: Fix calculation of size when using eMMC boot partitions

2024-10-28 Thread Jan Luebbe
stead, subtract the boot_part_size directly (twice, as there are two identical boot partitions defined by the eMMC spec). Suggested-by: Cédric Le Goater Signed-off-by: Jan Luebbe --- hw/sd/sd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c

[PATCH] hw/sd/sdcard: Allow user creation of eMMCs

2024-10-15 Thread Jan Luebbe
options above work is to avoid disabling user_creatable, so do that. The SDHCI-PCI driver in the Linux kernel already supports this just fine. Signed-off-by: Jan Luebbe --- hw/sd/sd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index a5d2d929a8af..2d3467c3d956 100644

[PATCH] hw/sd/sdcard: Fix handling of disabled boot partitions

2024-09-06 Thread Jan Luebbe
, Linux detects boot partitions of 1M. But as sd_bootpart_offset always returns 0, all reads/writes are mapped to the same offset in the backing file. Fix this bug by calculating the offset independent of which partition is enabled for booting. Signed-off-by: Jan Luebbe --- hw/sd/sd.c | 7

[PATCH] hw/char/pl011: add support for sending break

2021-08-06 Thread Jan Luebbe
Break events are currently only handled by chardev/char-serial.c, so we just ignore errors, which results in no behaviour change for other chardevs. Signed-off-by: Jan Luebbe --- hw/char/pl011.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/hw/char/pl011.c b/hw/char/pl011.c index