* [PATCH 0/1] Remove flatview_simplify()
@ 2020-12-06 8:21 FelixCuioc
2020-12-06 8:21 ` [PATCH 1/1] " FelixCuioc
0 siblings, 1 reply; 4+ messages in thread
From: FelixCuioc @ 2020-12-06 8:21 UTC (permalink / raw)
To: Paolo Bonzini, Richard Henderson, Eduardo Habkost,
Alex Williamson
Cc: TonyWWang-oc, qemu-devel, CobeChen-oc
When assign EHCI device to the virtual machine,
after initializing EHCI in seabios,it will continuously
send dma cycles.
Flatview_simplify() will merge a very large range.The IOVA
mappings of the EHCI device will be innocently unmapped
between the delete and add phases of the VFIO MemoryListener.
At this time,the IOMMU will block the DMA cycle.
We want to remove flatview_simplify() is to prevent EHCI
device IOVA mappings from being unmapped.
FelixCui-oc (1):
Remove flatview_simplify()
softmmu/memory.c | 1 -
1 file changed, 1 deletion(-)
--
2.17.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] Remove flatview_simplify()
2020-12-06 8:21 [PATCH 0/1] Remove flatview_simplify() FelixCuioc
@ 2020-12-06 8:21 ` FelixCuioc
2020-12-06 10:10 ` Paolo Bonzini
0 siblings, 1 reply; 4+ messages in thread
From: FelixCuioc @ 2020-12-06 8:21 UTC (permalink / raw)
To: Paolo Bonzini, Richard Henderson, Eduardo Habkost,
Alex Williamson
Cc: TonyWWang-oc, FelixCui-oc, qemu-devel, CobeChen-oc
From: FelixCui-oc <FelixCui-oc@zhaoxin.com>
Flatview_simplify() will cause some innocent mappings
to be unmapped.
Signed-off-by: FelixCui-oc <FelixCui-oc@zhaoxin.com>
Signed-off-by: FelixCuioc <FelixCui-oc@zhaoxin.com>
---
softmmu/memory.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/softmmu/memory.c b/softmmu/memory.c
index 11ca94d037..66d36dcac4 100644
--- a/softmmu/memory.c
+++ b/softmmu/memory.c
@@ -733,7 +733,6 @@ static FlatView *generate_memory_topology(MemoryRegion *mr)
addrrange_make(int128_zero(), int128_2_64()),
false, false);
}
- flatview_simplify(view);
view->dispatch = address_space_dispatch_new(view);
for (i = 0; i < view->nr; i++) {
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] Remove flatview_simplify()
2020-12-06 8:21 ` [PATCH 1/1] " FelixCuioc
@ 2020-12-06 10:10 ` Paolo Bonzini
0 siblings, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2020-12-06 10:10 UTC (permalink / raw)
To: FelixCuioc, Richard Henderson, Eduardo Habkost, Alex Williamson
Cc: TonyWWang-oc, qemu-devel, CobeChen-oc
On 06/12/20 09:21, FelixCuioc wrote:
> From: FelixCui-oc <FelixCui-oc@zhaoxin.com>
>
> Flatview_simplify() will cause some innocent mappings
> to be unmapped.
>
> Signed-off-by: FelixCui-oc <FelixCui-oc@zhaoxin.com>
> Signed-off-by: FelixCuioc <FelixCui-oc@zhaoxin.com>
> ---
> softmmu/memory.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/softmmu/memory.c b/softmmu/memory.c
> index 11ca94d037..66d36dcac4 100644
> --- a/softmmu/memory.c
> +++ b/softmmu/memory.c
> @@ -733,7 +733,6 @@ static FlatView *generate_memory_topology(MemoryRegion *mr)
> addrrange_make(int128_zero(), int128_2_64()),
> false, false);
> }
> - flatview_simplify(view);
>
> view->dispatch = address_space_dispatch_new(view);
> for (i = 0; i < view->nr; i++) {
>
This will give a warning about an unused static function. You have to
clean that up too.
Also please include more information from the previous discussions in
the commut message, thanks.
Paolo
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 0/1] Remove flatview_simplify()
@ 2021-03-29 12:14 FelixCuioc
0 siblings, 0 replies; 4+ messages in thread
From: FelixCuioc @ 2021-03-29 12:14 UTC (permalink / raw)
To: Paolo Bonzini, Richard Henderson, Eduardo Habkost,
Alex Williamson
Cc: RaymondPang-oc, qemu-devel, CobeChen-oc
When assign EHCI device to the virtual machine,
after initializing EHCI in seabios,it will continuously
send dma cycles.
Flatview_simplify() will merge a very large range.The IOVA
mappings of the EHCI device will be innocently unmapped
between the delete and add phases of the VFIO MemoryListener.
At this time,the IOMMU will block the DMA cycle.
We want to remove flatview_simplify() is to prevent EHCI
device IOVA mappings from being unmapped.
FelixCuioc (1):
Remove flatview_simplify()
softmmu/memory.c | 37 -------------------------------------
1 file changed, 37 deletions(-)
--
2.17.1
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-03-29 12:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-06 8:21 [PATCH 0/1] Remove flatview_simplify() FelixCuioc
2020-12-06 8:21 ` [PATCH 1/1] " FelixCuioc
2020-12-06 10:10 ` Paolo Bonzini
-- strict thread matches above, loose matches on Subject: below --
2021-03-29 12:14 [PATCH 0/1] " FelixCuioc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).