Replace bdrv_* to bdrv_aio_* functions in DMA mode in fdc.c.
Signed-off-by: Li Zhi Hui
---
hw/fdc.c | 265 ++
1 files changed, 196 insertions(+), 69 deletions(-)
diff --git a/hw/fdc.c b/hw/fdc.c
index a0236b7..11d2a5c 100644
--- a/hw
Replace bdrv_* to bdrv_aio_* functions in pio mode in fdc.c.
Signed-off-by: Li Zhi Hui
---
hw/fdc.c | 117 +++--
1 files changed, 90 insertions(+), 27 deletions(-)
diff --git a/hw/fdc.c b/hw/fdc.c
index a0236b7..5e855fd 100644
--- a/hw
Signed-off-by: Li Zhi Hui
---
hw/dma.c | 15
hw/fdc.c | 259 +-
2 files changed, 189 insertions(+), 85 deletions(-)
diff --git a/hw/dma.c b/hw/dma.c
index 0a9322d..7de4498 100644
--- a/hw/dma.c
+++ b/hw/dma.c
@@ -357,15 +357,6
Replace bdrv_* to bdrv_aio_* functions in pio mode in fdc.c.
Signed-off-by: Li Zhi Hui
---
hw/fdc.c | 123 +-
1 files changed, 89 insertions(+), 34 deletions(-)
diff --git a/hw/fdc.c b/hw/fdc.c
index a0236b7..0d178d2 100644
--- a/hw
Replace bdrv_* to bdrv_aio_* functions in DMA mode in fdc.c.
Signed-off-by: Li Zhi Hui
---
hw/dma.c | 36 +
hw/fdc.c | 260 +-
hw/isa.h |1 +
3 files changed, 212 insertions(+), 85 deletions(-)
diff --git a/hw/dma.c b
add function DMA_set_return and delete bh_schedule in dma.c
Signed-off-by: Li Zhi Hui
---
hw/dma.c | 21 ++---
hw/isa.h |1 +
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/hw/dma.c b/hw/dma.c
index 0a9322d..48e153a 100644
--- a/hw/dma.c
+++ b/hw/dma.c
Replace bdrv_* to bdrv_aio_* functions in DMA mode in fdc.c.
Signed-off-by: Li Zhi Hui
---
hw/fdc.c | 266 +-
1 files changed, 195 insertions(+), 71 deletions(-)
diff --git a/hw/fdc.c b/hw/fdc.c
index a0236b7..f7c36f3 100644
--- a/hw
Replace bdrv_* to bdrv_aio_* functions in DMA mode in fdc.c.
Signed-off-by: Li Zhi Hui
---
change log:
v3: correct some mistakes about memory
v4: change the return value of function fdctrl_transfer_handler
v5: introduce a flag to avoid re-enter function fdctrl_transfer_handler
hw/fdc.c | 277
add function DMA_set_return and delete bh_schedule in dma.c
Signed-off-by: Li Zhi Hui
---
hw/dma.c | 13 +
hw/isa.h |1 +
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/hw/dma.c b/hw/dma.c
index 0a9322d..55dc320 100644
--- a/hw/dma.c
+++ b/hw/dma.c
@@ -460,6
Replace bdrv_* to bdrv_aio_* functions in DMA mode in fdc.c.
To avoid re-enter function fdctrl_transfer_handler, according paolo's
suggestion, the patch is used to test.
Signed-off-by: Li Zhi Hui
---
change log:
v3: correct some mistakes about memory
v4: change the return value of fun
To avoid re-enter function fdctrl_transfer_handler, according paolo's
suggestion, the patch is used to test.
Signed-off-by: Li Zhi Hui
---
hw/dma.c | 48 ++--
hw/isa.h |2 ++
2 files changed, 48 insertions(+), 2 deletions(-)
diff --git
Since common file operation functions lack of error detection,
so change them to bdrv series functions.
Signed-off-by: Li Zhi Hui
---
block/cow.c | 63 +-
1 files changed, 36 insertions(+), 27 deletions(-)
diff --git a/block/cow.c b
Since common file operation functions lack of error detection,
so change them to bdrv series functions.
v2: Only contains the function modified.
v1: Fix coding style and convert file operation functions to bdrv functions.
Signed-off-by: Li Zhi Hui
---
block/cow.c | 35
Since common file operation functions lack of error detection,
so change them to bdrv series functions.
v3: correct some errors
v2: Only contains the function modified.
v1: Fix coding style and convert file operation functions to bdrv functions.
Signed-off-by: Li Zhi Hui
---
block/cow.c
Signed-off-by: Paolo Bonzini
Signed-off-by: Li Zhi Hui
Before v5 version, Although use bdrv_aio_* to replace bdrv_* functions, But In
the process
of processing data, only call the bdrv_dio_* one time, it will not really
simulate floppy disk's
reading and writing.
In v6 version each rea
t;impolite"), so remove all that code
for that now for simplicity.
Signed-off-by: Paolo Bonzini
Signed-off-by: Li Zhi Hui
---
hw/dma.c | 80 +--
hw/fdc.c |1 +
hw/isa.h |2 +
hw/sun4m.c |3 ++
hw/sun4u.c |3 ++
Signed-off-by: Paolo Bonzini
Signed-off-by: Li Zhi Hui
---
hw/fdc.c | 19 +++
trace-events |8
2 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/hw/fdc.c b/hw/fdc.c
index 29ab29d..7ab8a1f 100644
--- a/hw/fdc.c
+++ b/hw/fdc.c
@@ -36,6 +36,7
Signed-off-by: Paolo Bonzini
Signed-off-by: Li Zhi Hui
---
hw/fdc.c | 313 +
1 files changed, 210 insertions(+), 103 deletions(-)
diff --git a/hw/fdc.c b/hw/fdc.c
index 5684a05..29ab29d 100644
--- a/hw/fdc.c
+++ b/hw/fdc.c
@@ -404,6
Since common file operation functions lack of error detection and use much more
I/O syscalls,
so change them to bdrv series functions and reduce I/O request.
Signed-off-by: Li Zhi Hui
---
block/qcow.c | 42 +++---
1 files changed, 23 insertions(+), 19
Since common file operation functions lack of error detection and use much more
I/O syscalls,
so change them to bdrv series functions and reduce I/O request.
v2: avoid malloc a large memory
v1: convert file operation functions to bdrv functions and reduce I/O request.
Signed-off-by: Li Zhi Hui
Signed-off-by: Li Zhi Hui
---
hw/smbus_eeprom.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/hw/smbus_eeprom.c b/hw/smbus_eeprom.c
index 5d080ab..d66fbbc 100644
--- a/hw/smbus_eeprom.c
+++ b/hw/smbus_eeprom.c
@@ -142,4 +142,5 @@ void smbus_eeprom_init(i2c_bus *smbus
Signed-off-by: Li Zhi Hui
---
qemu-nbd.c |4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/qemu-nbd.c b/qemu-nbd.c
index 291cba2..ab7fa6c 100644
--- a/qemu-nbd.c
+++ b/qemu-nbd.c
@@ -500,8 +500,10 @@ int main(int argc, char **argv)
sharing_fds[0
Signed-off-by: Li Zhi Hui
---
block/qcow2.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/block/qcow2.c b/block/qcow2.c
index 37cd442..aa32e8d 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -635,6 +635,7 @@ static void qcow2_close(BlockDriverState *bs)
g_free(s
Signed-off-by: Li Zhi Hui
---
block/cow.c | 22 --
1 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/block/cow.c b/block/cow.c
index 3c52735..383482b 100644
--- a/block/cow.c
+++ b/block/cow.c
@@ -64,10 +64,11 @@ static int cow_open(BlockDriverState *bs, int
v2: modify some errors
Signed-off-by: Li Zhi Hui
---
block/cow.c | 31 ++-
1 files changed, 18 insertions(+), 13 deletions(-)
diff --git a/block/cow.c b/block/cow.c
index 3c52735..51ca681 100644
--- a/block/cow.c
+++ b/block/cow.c
@@ -64,15 +64,17 @@ static int
v3: modify some errors
Signed-off-by: Li Zhi Hui
---
block/cow.c | 44 +---
1 files changed, 29 insertions(+), 15 deletions(-)
diff --git a/block/cow.c b/block/cow.c
index 3c52735..bb5927c 100644
--- a/block/cow.c
+++ b/block/cow.c
@@ -64,15 +64,26
Signed-off-by: Li Zhi Hui
---
block/qcow.c | 56 +---
1 files changed, 37 insertions(+), 19 deletions(-)
diff --git a/block/qcow.c b/block/qcow.c
index b16955d..e0d0b88 100644
--- a/block/qcow.c
+++ b/block/qcow.c
@@ -95,11 +95,13 @@ static
27 matches
Mail list logo