vhost: improve region filtering

vhost memory management doesn't care about non-memory (e.g. PIO) or non-RAM
regions.  Adjust the filtering to reflect that, and move it earlier so it
applies to mem_sections too.

Signed-off-by: Avi Kivity <avi@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
1 file changed
tree: 8752c01bca5ffcdeab5cab86988a14870a8e3258
  1. .gitignore
  2. .gitmodules
  3. .mailmap
  4. CODING_STYLE
  5. COPYING
  6. COPYING.LIB
  7. Changelog
  8. HACKING
  9. LICENSE
  10. MAINTAINERS
  11. Makefile
  12. Makefile.dis
  13. Makefile.hw
  14. Makefile.objs
  15. Makefile.target
  16. Makefile.user
  17. QMP/
  18. README
  19. TODO
  20. VERSION
  21. a.out.h
  22. acl.c
  23. acl.h
  24. aes.c
  25. aes.h
  26. aio.c
  27. alpha-dis.c
  28. alpha.ld
  29. arch_init.c
  30. arch_init.h
  31. arm-dis.c
  32. arm-semi.c
  33. arm.ld
  34. async.c
  35. audio/
  36. balloon.c
  37. balloon.h
  38. bitmap.c
  39. bitmap.h
  40. bitops.c
  41. bitops.h
  42. block-migration.c
  43. block-migration.h
  44. block.c
  45. block.h
  46. block/
  47. block_int.h
  48. blockdev.c
  49. blockdev.h
  50. bsd-user/
  51. bswap.h
  52. bt-host.c
  53. bt-host.h
  54. bt-vhci.c
  55. buffered_file.c
  56. buffered_file.h
  57. cache-utils.c
  58. cache-utils.h
  59. check-qdict.c
  60. check-qfloat.c
  61. check-qint.c
  62. check-qjson.c
  63. check-qlist.c
  64. check-qstring.c
  65. cmd.c
  66. cmd.h
  67. compatfd.c
  68. compatfd.h
  69. compiler.h
  70. config.h
  71. configure
  72. console.c
  73. console.h
  74. coroutine-gthread.c
  75. coroutine-ucontext.c
  76. coroutine-win32.c
  77. cpu-all.h
  78. cpu-common.h
  79. cpu-defs.h
  80. cpu-exec.c
  81. cpus.c
  82. cpus.h
  83. cris-dis.c
  84. cursor.c
  85. cursor_hidden.xpm
  86. cursor_left_ptr.xpm
  87. cutils.c
  88. darwin-user/
  89. def-helper.h
  90. default-configs/
  91. device_tree.c
  92. device_tree.h
  93. dis-asm.h
  94. disas.c
  95. disas.h
  96. dma-helpers.c
  97. dma.h
  98. docs/
  99. dyngen-exec.h
  100. elf.h
  101. envlist.c
  102. envlist.h
  103. error.c
  104. error.h
  105. error_int.h
  106. event_notifier.c
  107. event_notifier.h
  108. exec-all.h
  109. exec-memory.h
  110. exec-obsolete.h
  111. exec.c
  112. fpu/
  113. fsdev/
  114. gdb-xml/
  115. gdbstub.c
  116. gdbstub.h
  117. gen-icount.h
  118. hmp-commands.hx
  119. hmp.c
  120. hmp.h
  121. host-utils.c
  122. host-utils.h
  123. hppa-dis.c
  124. hppa.ld
  125. hw/
  126. i386-dis.c
  127. i386.ld
  128. ia64-dis.c
  129. ia64.ld
  130. input.c
  131. int128.h
  132. iohandler.c
  133. ioport-user.c
  134. ioport.c
  135. ioport.h
  136. iorange.h
  137. iov.c
  138. iov.h
  139. json-lexer.c
  140. json-lexer.h
  141. json-parser.c
  142. json-parser.h
  143. json-streamer.c
  144. json-streamer.h
  145. kvm-all.c
  146. kvm-stub.c
  147. kvm.h
  148. libcacard/
  149. libfdt_env.h
  150. linux-aio.c
  151. linux-headers/
  152. linux-user/
  153. m68k-dis.c
  154. m68k-semi.c
  155. m68k.ld
  156. main-loop.c
  157. main-loop.h
  158. memory.c
  159. memory.h
  160. microblaze-dis.c
  161. migration-exec.c
  162. migration-fd.c
  163. migration-tcp.c
  164. migration-unix.c
  165. migration.c
  166. migration.h
  167. mips-dis.c
  168. mips.ld
  169. module.c
  170. module.h
  171. monitor.c
  172. monitor.h
  173. nbd.c
  174. nbd.h
  175. net.c
  176. net.h
  177. net/
  178. notify.c
  179. notify.h
  180. os-posix.c
  181. os-win32.c
  182. osdep.c
  183. osdep.h
  184. oslib-posix.c
  185. oslib-win32.c
  186. path.c
  187. pc-bios/
  188. pci-ids.txt
  189. pflib.c
  190. pflib.h
  191. poison.h
  192. posix-aio-compat.c
  193. ppc-dis.c
  194. ppc.ld
  195. ppc64.ld
  196. qapi-schema-guest.json
  197. qapi-schema-test.json
  198. qapi-schema.json
  199. qapi/
  200. qbool.c
  201. qbool.h
  202. qdict-test-data.txt
  203. qdict.c
  204. qdict.h
  205. qemu-aio.h
  206. qemu-barrier.h
  207. qemu-char.c
  208. qemu-char.h
  209. qemu-common.h
  210. qemu-config.c
  211. qemu-config.h
  212. qemu-coroutine-int.h
  213. qemu-coroutine-io.c
  214. qemu-coroutine-lock.c
  215. qemu-coroutine.c
  216. qemu-coroutine.h
  217. qemu-doc.texi
  218. qemu-error.c
  219. qemu-error.h
  220. qemu-ga.c
  221. qemu-img-cmds.hx
  222. qemu-img.c
  223. qemu-img.texi
  224. qemu-io.c
  225. qemu-lock.h
  226. qemu-log.h
  227. qemu-nbd.c
  228. qemu-nbd.texi
  229. qemu-objects.h
  230. qemu-option.c
  231. qemu-option.h
  232. qemu-options-wrapper.h
  233. qemu-options.h
  234. qemu-options.hx
  235. qemu-os-posix.h
  236. qemu-os-win32.h
  237. qemu-progress.c
  238. qemu-queue.h
  239. qemu-sockets.c
  240. qemu-tech.texi
  241. qemu-thread-posix.c
  242. qemu-thread-posix.h
  243. qemu-thread-win32.c
  244. qemu-thread-win32.h
  245. qemu-thread.h
  246. qemu-timer-common.c
  247. qemu-timer.c
  248. qemu-timer.h
  249. qemu-tls.h
  250. qemu-tool.c
  251. qemu-x509.h
  252. qemu-xattr.h
  253. qemu.sasl
  254. qemu_socket.h
  255. qerror.c
  256. qerror.h
  257. qfloat.c
  258. qfloat.h
  259. qga/
  260. qint.c
  261. qint.h
  262. qjson.c
  263. qjson.h
  264. qlist.c
  265. qlist.h
  266. qmp-commands.hx
  267. qmp.c
  268. qobject.h
  269. qstring.c
  270. qstring.h
  271. range.h
  272. readline.c
  273. readline.h
  274. roms/
  275. rules.mak
  276. s390-dis.c
  277. s390.ld
  278. savevm.c
  279. scripts/
  280. sh4-dis.c
  281. slirp/
  282. softmmu-semi.h
  283. softmmu_defs.h
  284. softmmu_exec.h
  285. softmmu_header.h
  286. softmmu_template.h
  287. sparc-dis.c
  288. sparc.ld
  289. sparc64.ld
  290. spice-qemu-char.c
  291. sysconfigs/
  292. sysemu.h
  293. target-alpha/
  294. target-arm/
  295. target-cris/
  296. target-i386/
  297. target-lm32/
  298. target-m68k/
  299. target-microblaze/
  300. target-mips/
  301. target-ppc/
  302. target-s390x/
  303. target-sh4/
  304. target-sparc/
  305. target-unicore32/
  306. target-xtensa/
  307. targphys.h
  308. tcg-runtime.c
  309. tcg/
  310. tci-dis.c
  311. tci.c
  312. test-coroutine.c
  313. test-qmp-commands.c
  314. test-qmp-input-visitor.c
  315. test-qmp-output-visitor.c
  316. tests/
  317. thunk.c
  318. thunk.h
  319. trace-events
  320. trace/
  321. translate-all.c
  322. uboot_image.h
  323. ui/
  324. usb-bsd.c
  325. usb-linux.c
  326. usb-redir.c
  327. usb-stub.c
  328. user-exec.c
  329. version.rc
  330. vgafont.h
  331. vl.c
  332. x86_64.ld
  333. xen-all.c
  334. xen-mapcache.c
  335. xen-mapcache.h
  336. xen-stub.c
  337. xtensa-semi.c