Hi Vincent, thanks for your report - really good research, even indicating a potential fix. I manage to reproduce this issue using the following steps:
1) Be sure to run Ubuntu 16.04 on both guest and host, both running kernel 4.4.0 (could be latest version of this kernel) 2) In the guest, install the package "msr-tools", like: "sudo apt install msr-tools" 3) Still on guest, run: "sudo modprobe msr; sudo wrmsr 0x48 1" This will enable the MSR bit for IBRS inside the guest 4) Now the host shows bad performance If we run "sudo wrmsr 0x48 0" in the guest, host gets its performance back. I'll investigate some commits upstream, including the one you suggested, and once we figure the exact fix for this, will request SRU to the kernel team. Thanks, Guilherme ** Changed in: linux (Ubuntu) Assignee: (unassigned) => Guilherme G. Piccoli (gpiccoli) ** Changed in: linux (Ubuntu Xenial) Assignee: (unassigned) => Guilherme G. Piccoli (gpiccoli) ** Tags added: sts -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1764956 Title: Guests using IBRS incur a large performance penalty To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1764956/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs