Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110078030
D5739.id14598.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
779 B
Referenced Files
None
Subscribers
None
D5739.id14598.diff
View Options
Index: sys/dev/vt/hw/vga/vt_vga.c
===================================================================
--- sys/dev/vt/hw/vga/vt_vga.c
+++ sys/dev/vt/hw/vga/vt_vga.c
@@ -1229,7 +1229,16 @@
bus_space_map(sc->vga_reg_tag, VGA_REG_BASE, VGA_REG_SIZE, 0,
&sc->vga_reg_handle);
- TUNABLE_INT_FETCH("hw.vga.textmode", &textmode);
+ /*
+ * If "hw.vga.textmode" is not set and we're running on hypervisor,
+ * we use text mode by default, this is because when we're on
+ * hypervisor, vt(4) is usually much slower in graphics mode than
+ * in text mode, especially when we're on Hyper-V.
+ */
+ if (!TUNABLE_INT_FETCH("hw.vga.textmode", &textmode) &&
+ vm_guest != VM_GUEST_NO)
+ textmode = 1;
+
if (textmode) {
vd->vd_flags |= VDF_TEXTMODE;
vd->vd_width = 80;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 14, 8:28 AM (19 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16640006
Default Alt Text
D5739.id14598.diff (779 B)
Attached To
Mode
D5739: vt_vga: use textmode when we're running on hypervisor
Attached
Detach File
Event Timeline
Log In to Comment