-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'stable/drivers' of git://git.kernel.org/pub/scm/linux/k…
…ernel/git/konrad/xen * 'stable/drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen: xen/pciback: Have 'passthrough' option instead of XEN_PCIDEV_BACKEND_PASS and XEN_PCIDEV_BACKEND_VPCI xen/pciback: Remove the DEBUG option. xen/pciback: Drop two backends, squash and cleanup some code. xen/pciback: Print out the MSI/MSI-X (PIRQ) values xen/pciback: Don't setup an fake IRQ handler for SR-IOV devices. xen: rename pciback module to xen-pciback. xen/pciback: Fine-grain the spinlocks and fix BUG: scheduling while atomic cases. xen/pciback: Allocate IRQ handler for device that is shared with guest. xen/pciback: Disable MSI/MSI-X when reseting a device xen/pciback: guest SR-IOV support for PV guest xen/pciback: Register the owner (domain) of the PCI device. xen/pciback: Cleanup the driver based on checkpatch warnings and errors. xen/pciback: xen pci backend driver. xen: tmem: self-ballooning and frontswap-selfshrinking xen: Add module alias to autoload backend drivers xen: Populate xenbus device attributes xen: Add __attribute__((format(printf... where appropriate xen: prepare tmem shim to handle frontswap xen: allow enable use of VGA console on dom0
- Loading branch information
Showing
32 changed files
with
5,346 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#include <linux/screen_info.h> | ||
#include <linux/init.h> | ||
|
||
#include <asm/bootparam.h> | ||
#include <asm/setup.h> | ||
|
||
#include <xen/interface/xen.h> | ||
|
||
#include "xen-ops.h" | ||
|
||
void __init xen_init_vga(const struct dom0_vga_console_info *info, size_t size) | ||
{ | ||
struct screen_info *screen_info = &boot_params.screen_info; | ||
|
||
/* This is drawn from a dump from vgacon:startup in | ||
* standard Linux. */ | ||
screen_info->orig_video_mode = 3; | ||
screen_info->orig_video_isVGA = 1; | ||
screen_info->orig_video_lines = 25; | ||
screen_info->orig_video_cols = 80; | ||
screen_info->orig_video_ega_bx = 3; | ||
screen_info->orig_video_points = 16; | ||
screen_info->orig_y = screen_info->orig_video_lines - 1; | ||
|
||
switch (info->video_type) { | ||
case XEN_VGATYPE_TEXT_MODE_3: | ||
if (size < offsetof(struct dom0_vga_console_info, u.text_mode_3) | ||
+ sizeof(info->u.text_mode_3)) | ||
break; | ||
screen_info->orig_video_lines = info->u.text_mode_3.rows; | ||
screen_info->orig_video_cols = info->u.text_mode_3.columns; | ||
screen_info->orig_x = info->u.text_mode_3.cursor_x; | ||
screen_info->orig_y = info->u.text_mode_3.cursor_y; | ||
screen_info->orig_video_points = | ||
info->u.text_mode_3.font_height; | ||
break; | ||
|
||
case XEN_VGATYPE_VESA_LFB: | ||
if (size < offsetof(struct dom0_vga_console_info, | ||
u.vesa_lfb.gbl_caps)) | ||
break; | ||
screen_info->orig_video_isVGA = VIDEO_TYPE_VLFB; | ||
screen_info->lfb_width = info->u.vesa_lfb.width; | ||
screen_info->lfb_height = info->u.vesa_lfb.height; | ||
screen_info->lfb_depth = info->u.vesa_lfb.bits_per_pixel; | ||
screen_info->lfb_base = info->u.vesa_lfb.lfb_base; | ||
screen_info->lfb_size = info->u.vesa_lfb.lfb_size; | ||
screen_info->lfb_linelength = info->u.vesa_lfb.bytes_per_line; | ||
screen_info->red_size = info->u.vesa_lfb.red_size; | ||
screen_info->red_pos = info->u.vesa_lfb.red_pos; | ||
screen_info->green_size = info->u.vesa_lfb.green_size; | ||
screen_info->green_pos = info->u.vesa_lfb.green_pos; | ||
screen_info->blue_size = info->u.vesa_lfb.blue_size; | ||
screen_info->blue_pos = info->u.vesa_lfb.blue_pos; | ||
screen_info->rsvd_size = info->u.vesa_lfb.rsvd_size; | ||
screen_info->rsvd_pos = info->u.vesa_lfb.rsvd_pos; | ||
if (size >= offsetof(struct dom0_vga_console_info, | ||
u.vesa_lfb.gbl_caps) | ||
+ sizeof(info->u.vesa_lfb.gbl_caps)) | ||
screen_info->capabilities = info->u.vesa_lfb.gbl_caps; | ||
if (size >= offsetof(struct dom0_vga_console_info, | ||
u.vesa_lfb.mode_attrs) | ||
+ sizeof(info->u.vesa_lfb.mode_attrs)) | ||
screen_info->vesa_attributes = info->u.vesa_lfb.mode_attrs; | ||
break; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.