Re: Re: [PATCH] kvm/arm64: Fix memory section did not set to kvm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 28 Mar 2022 at 13:17, <liucong2@xxxxxxxxxx> wrote:
>
> thanks for you explain, I will learn it later.
>
>
> in the scenario of rom bar size 8k, page size 64k, the value of
>
> 'size = ROUND_UP(size, qemu_real_host_page_size)' is 64k, kvm_align_section
>
> also return 64k bytes.  just the same size as the size of RAMBlock. I still
>
> did not understand why it is wrong.

Because if the size of the memory region is 8K, not 64K, then
we should not map into the guest 64K, but only 8K.

I'm still not sure what exactly you're trying to fix here.
The specific case of the QXL ROM BAR we already have the fix for.
Is there another specific case you are running into ?

-- PMM



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux