diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-02 12:31:35 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-18 11:17:27 +0200 |
| commit | ab75ecb79be3b856f63bef4c91aef0dc17d405cb (patch) | |
| tree | 04370c6fac0ffbe5a5b9af31ac40a69aa86e4450 /accel/kvm/kvm-accel-ops.c | |
| parent | 748e62dbf5065c7d166c827425c7797389b5f9fe (diff) | |
| download | focaccia-qemu-ab75ecb79be3b856f63bef4c91aef0dc17d405cb.tar.gz focaccia-qemu-ab75ecb79be3b856f63bef4c91aef0dc17d405cb.zip | |
vga: optimize computation of dirty memory region
The depth == 0 and depth == 15 have to be special cased because width * depth / 8 does not provide the correct scanline length. However, thanks to the recent reorganization of vga_draw_graphic() the correct value of VRAM bits per pixel is available in "bits". Use it (via the same "bwidth" computation that is used later in the function), thus restricting the slow path to the wraparound case. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'accel/kvm/kvm-accel-ops.c')
0 files changed, 0 insertions, 0 deletions