]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commit
block: char devices on FreeBSD are not behind a pager qemu-xen-4.5.0-rc2
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 21 Oct 2014 14:03:03 +0000 (16:03 +0200)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 27 Oct 2014 15:16:20 +0000 (15:16 +0000)
commitca78cc83650b535d7e24baeaea32947be0141534
treefa63a96d412e0f938557ba0a0484e66ab1291be3
parentc9d8f8b755e8960edf7725e05f3e6ac743a5e12e
block: char devices on FreeBSD are not behind a pager

Introduce a new flag to mark devices that require requests to be aligned and
replace the usage of BDRV_O_NOCACHE and O_DIRECT with this flag when
appropriate.

If a character device is used as a backend on a FreeBSD host set this flag
unconditionally.

upstream-commit-id: 3cad83075c7b847fe0eb6e61316fdf50984d4570

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
block/raw-posix.c