Re: [Qemu-devel] [PATCH 1.2 6/7] ide: support enable/disable write cache

2012-05-31 Thread Kevin Wolf
Am 31.05.2012 15:06, schrieb Paolo Bonzini: > Il 31/05/2012 14:33, Paolo Bonzini ha scritto: case 0x02: /* write cache enable */ +bdrv_set_enable_write_cache(s->bs, true); +identify_data = (uint16_t *)s->identify_data; +

Re: [Qemu-devel] [PATCH 1.2 6/7] ide: support enable/disable write cache

2012-05-31 Thread Paolo Bonzini
Il 31/05/2012 14:33, Paolo Bonzini ha scritto: >> > case 0x02: /* write cache enable */ >> > +bdrv_set_enable_write_cache(s->bs, true); >> > +identify_data = (uint16_t *)s->identify_data; >> > +put_le16(identify_data + 85, (1 << 14) |

Re: [Qemu-devel] [PATCH 1.2 6/7] ide: support enable/disable write cache

2012-05-31 Thread Paolo Bonzini
Il 31/05/2012 13:53, Kevin Wolf ha scritto: >> > case 0x02: /* write cache enable */ >> > +bdrv_set_enable_write_cache(s->bs, true); >> > +identify_data = (uint16_t *)s->identify_data; >> > +put_le16(identify_data + 85, (1 << 14) | (1 << 5) | 1); > How a

Re: [Qemu-devel] [PATCH 1.2 6/7] ide: support enable/disable write cache

2012-05-31 Thread Kevin Wolf
Am 22.05.2012 18:17, schrieb Paolo Bonzini: > Enabling or disabling the write cache is done with the SET FEATURES > command. The command can be issued with sg_sat_set_features from > sg3-utils. > > Signed-off-by: Paolo Bonzini > --- > hw/ide/core.c | 18 +++--- > 1 files changed,

[Qemu-devel] [PATCH 1.2 6/7] ide: support enable/disable write cache

2012-05-22 Thread Paolo Bonzini
Enabling or disabling the write cache is done with the SET FEATURES command. The command can be issued with sg_sat_set_features from sg3-utils. Signed-off-by: Paolo Bonzini --- hw/ide/core.c | 18 +++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/hw/ide/core.c