0c76f22ef1
- bnc#633573 - System fail to boot after running several warm reboot tests 22749-vtd-workarounds.patch - Upstream patches from Jan 22744-ept-pod-locking.patch 22777-vtd-ats-fixes.patch 22781-pod-hap-logdirty.patch 22782-x86-emul-smsw.patch 22789-i386-no-x2apic.patch 22790-svm-resume-migrate-pirqs.patch 22816-x86-pirq-drop-priv-check.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=94
51 lines
1.8 KiB
Diff
51 lines
1.8 KiB
Diff
Index: xen-4.0.2-testing/tools/ioemu-qemu-xen/hw/xenfb.c
|
|
===================================================================
|
|
--- xen-4.0.2-testing.orig/tools/ioemu-qemu-xen/hw/xenfb.c
|
|
+++ xen-4.0.2-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;
|
|
}
|
|
|