9a05aa7fc4
22707-x2apic-preenabled-check.patch - bnc#641419 - L3: Xen: qemu-dm reports "xc_map_foreign_batch: mmap failed: Cannot allocate memory" 7434-qemu-rlimit-as.patch - Additional or upstream patches from Jan 22693-fam10-mmio-conf-base-protect.patch 22694-x86_64-no-weak.patch 22708-xenctx-misc.patch 21432-4.0-cpu-boot-failure.patch 22645-amd-flush-filter.patch qemu-fix-7433.patch - Maintain compatibility with the extid flag even though it is deprecated for both legacy and sxp config files. hv_extid_compatibility.patch - bnc#649209-improve suspend eventchn lock suspend_evtchn_lock.patch - Removed the hyper-v shim patches in favor of using the upstream version. - bnc#641419 - L3: Xen: qemu-dm reports "xc_map_foreign_batch: mmap failed: Cannot allocate memory" qemu-rlimit-as.patch - Upstream c/s 7433 to replace qemu_altgr_more.patch 7433-qemu-altgr.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=90
51 lines
1.8 KiB
Diff
51 lines
1.8 KiB
Diff
Index: xen-4.0.1-testing/tools/ioemu-qemu-xen/hw/xenfb.c
|
|
===================================================================
|
|
--- xen-4.0.1-testing.orig/tools/ioemu-qemu-xen/hw/xenfb.c
|
|
+++ xen-4.0.1-testing/tools/ioemu-qemu-xen/hw/xenfb.c
|
|
@@ -622,6 +622,18 @@ static void xenfb_guest_copy(struct XenF
|
|
oops = 1;
|
|
}
|
|
break;
|
|
+ case 16:
|
|
+ if (bpp == 16) {
|
|
+ for (line = y; line < (y+h); line++) {
|
|
+ memcpy (data + (line * linesize) + (x * bpp / 8), xenfb->pixels + xenfb->offset
|
|
+ + (line * xenfb->row_stride) + (x * xenfb->depth / 8), w * xenfb->depth / 8);
|
|
+ }
|
|
+ } else if (bpp == 32) {
|
|
+ BLT(uint16_t, uint32_t, 5, 6, 5, 8, 8, 8);
|
|
+ } else {
|
|
+ oops = 1;
|
|
+ }
|
|
+ break;
|
|
case 24:
|
|
if (bpp == 16) {
|
|
BLT(uint32_t, uint16_t, 8, 8, 8, 5, 6, 5);
|
|
@@ -631,6 +643,18 @@ static void xenfb_guest_copy(struct XenF
|
|
oops = 1;
|
|
}
|
|
break;
|
|
+ case 32:
|
|
+ if (bpp == 16) {
|
|
+ BLT(uint32_t, uint16_t, 8, 8, 8, 5, 6, 5);
|
|
+ } else if (bpp == 32) {
|
|
+ for (line = y; line < (y+h); line++) {
|
|
+ memcpy (data + (line * linesize) + (x * bpp / 8), xenfb->pixels + xenfb->offset
|
|
+ + (line * xenfb->row_stride) + (x * xenfb->depth / 8), w * xenfb->depth / 8);
|
|
+ }
|
|
+ } else {
|
|
+ oops = 1;
|
|
+ }
|
|
+ break;
|
|
default:
|
|
oops = 1;
|
|
}
|
|
@@ -784,6 +808,7 @@ static void xenfb_update(void *opaque)
|
|
static void xenfb_invalidate(void *opaque)
|
|
{
|
|
struct XenFB *xenfb = opaque;
|
|
+ xenfb->do_resize = 1;
|
|
xenfb->up_fullscreen = 1;
|
|
}
|
|
|