Re: [Bug 1917138] Re: kernel 4.15.0-136 causes dosemu2 with kvm freezes

2021-03-02 Thread Bambang Pranoto
Dear Guilherme,

On Wed, Mar 3, 2021 at 1:45 AM Guilherme G. Piccoli <
1917...@bugs.launchpad.net> wrote:

> So Bambang and/or Hans-Christian, can you please test the following
> kernel build that includes the aforementioned missing commit:
>
> https://kernel.ubuntu.com/~gpiccoli/lp1917138-2/
>
>
Yes, it works very well.

Thank you very much!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917138

Title:
  kernel 4.15.0-136 causes dosemu2 with kvm freezes

To manage notifications about this bug go to:
https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1917138] Re: kernel 4.15.0-136 causes dosemu2 with kvm freezes

2021-03-02 Thread Bug Watch Updater
** Changed in: dosemu2
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917138

Title:
  kernel 4.15.0-136 causes dosemu2 with kvm freezes

To manage notifications about this bug go to:
https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1917138] Re: kernel 4.15.0-136 causes dosemu2 with kvm freezes

2021-03-02 Thread Guilherme G. Piccoli
Hi Bambang, thanks a lot for your testing! I'll need you to test one
more kernel to be 100% sure of the issue and be able to fix it. Let me
elaborate on what's happening.

So, since kernel 4.15.0-136 we included a very complex KVM fix for a
kind of "race" in interrupt window triggered by David Woodhouse [0] and
analyzed by some members of KVM community (causing a live-lock - I
suggest reading [0], very informative thread). The fix was proposed in
the form of a patch series containing 2 patches [1] from Paolo Bonzini.
This was merged in Ubuntu though the stable tree, in the form of the
following commit:

71cc849b7093 ("KVM: x86: Fix split-irqchip vs interrupt injection window
request") [2]

The problem is that such commit has a companion required commit, which
was not proposed in the stable tree. In fact, there was a confusion
among KVM community and the stable maintainer [3], due to the lack of
such missing commit - because of that, the series was removed from
stable trees 4.14.y and 4.9.y, but the solo commit was merged alone in
Ubuntu kernel 4.15.

My theory is that this commit alone is causing an odd behavior
(specially since dosemu2 seems to make use of leagacy PIC instead of
APIC), so the fix would be to merge the companion commit in Ubuntu tree:

72c3bcdcda49 ("KVM: x86: handle !lapic_in_kernel case in
kvm_cpu_*_extint") [4]

It's interesting to note that after the stable confusion in [3], both
commits were removed from 4.9.y and 4.14.y trees - I intend to submit
both to 4.14.y tree after the next test, as well as merge it on Ubuntu
kernel.

I'll defer the test for next comment, in order to not pollute this one (which 
is already big and a bit over-detailed).
Cheers,


Guilherme


[0] 
https://lore.kernel.org/kvm/62918f65ec78f8990278a6a0db0567968fa23e49.ca...@infradead.org/
[1] https://lore.kernel.org/kvm/20201127112114.3219360-1-pbonz...@redhat.com/
[2] http://git.kernel.org/linus/71cc849b70
[3] 
https://lore.kernel.org/stable/d29c4b25-33f6-8d99-7a45-8f4e06f5a...@redhat.com/
[4] http://git.kernel.org/linus/72c3bcdcda

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917138

Title:
  kernel 4.15.0-136 causes dosemu2 with kvm freezes

To manage notifications about this bug go to:
https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1917138] Re: kernel 4.15.0-136 causes dosemu2 with kvm freezes

2021-03-02 Thread Guilherme G. Piccoli
So Bambang and/or Hans-Christian, can you please test the following
kernel build that includes the aforementioned missing commit:

https://kernel.ubuntu.com/~gpiccoli/lp1917138-2/

It's the same process as before, just install all the packages from the link 
above, reboot and retry the reproducer - be sure that dosemu2 is using KVM mode.
Let me know the results, so I can submit this patch properly to the 
mailing-list to fix Bionic kernel.

Thanks,


Guilherme

** Changed in: linux (Ubuntu)
   Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917138

Title:
  kernel 4.15.0-136 causes dosemu2 with kvm freezes

To manage notifications about this bug go to:
https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 1917138] Re: kernel 4.15.0-136 causes dosemu2 with kvm freezes

2021-03-02 Thread Bambang Pranoto
Hello Guilherme,

Yes you are right. The 137 from the Pre-released update doesn't work.

The 137 files from https://kernel.ubuntu.com/~gpiccoli/lp1917138/ works
perfectly.

Thank you very much! Out of curiosity, what went wrong with the 136?


On Tue, Mar 2, 2021 at 7:20 PM Guilherme G. Piccoli <
1917...@bugs.launchpad.net> wrote:

> Thanks Bambang, let me know as soon as possible, so we can maybe fix
> this cycle (worst case, next cycle).
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1917138
>
> Title:
>   kernel 4.15.0-136 causes dosemu2 with kvm freezes
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions
>


-- 
Bambang P
http://bpranoto.blogspot.com

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917138

Title:
  kernel 4.15.0-136 causes dosemu2 with kvm freezes

To manage notifications about this bug go to:
https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1917138] Re: kernel 4.15.0-136 causes dosemu2 with kvm freezes

2021-03-02 Thread Guilherme G. Piccoli
Thanks Bambang, let me know as soon as possible, so we can maybe fix
this cycle (worst case, next cycle).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917138

Title:
  kernel 4.15.0-136 causes dosemu2 with kvm freezes

To manage notifications about this bug go to:
https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 1917138] Re: kernel 4.15.0-136 causes dosemu2 with kvm freezes

2021-03-01 Thread Bambang Pranoto
Dear Guilherme,

I will try and come back to you later.

Thanks again.

On Tue, Mar 2, 2021 at 4:56 AM Guilherme G. Piccoli <
1917...@bugs.launchpad.net> wrote:

> Thanks again Bambang and Hans-Christian for the report, it seems indeed
> a bug in the kernel. I think I know what's going on, but I'd like to ask
> you to perform some testing in order we can prove that, and then fix it.
>
> So, first it'll be 2 tests - depending on the result, a third test will be
> necessary.
> Please be sure to try both (1) and (2) with dos2emu using the KVM mode:
>
> (1) For the first test, please get the Bionic proposed kernel (see [0]
> for information on how to do it) - the current proposed version is
> 4.15.0-137. Try to reproduce with that version - I expect it to
> reproduce.
>
> (2) Now, get the build I made for you in
> https://kernel.ubuntu.com/~gpiccoli/lp1917138/ - observe that if you have
> the "linux-modules-extra" and "linux-headers" already installed on your
> system after test (1), please also install them from my build or else you
> might have issues in the boot process. To install the packages, download
> them from the link above to some directory and then run "dpkg -i *.deb"
> (supposing no other .deb file is present in that directory).
> Reboot the system after a successful installation and try to reproduce the
> issue - I suspect it won't reproduce, dosemu2 should work fine even in KVM
> mode.
>
> Thanks in advance,
>
>
> Guilherme
>
>
> [0] https://wiki.ubuntu.com/Testing/EnableProposed
> (don't forget to disable the proposed repository after your tests)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1917138
>
> Title:
>   kernel 4.15.0-136 causes dosemu2 with kvm freezes
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions
>


-- 
Bambang P
http://bpranoto.blogspot.com

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917138

Title:
  kernel 4.15.0-136 causes dosemu2 with kvm freezes

To manage notifications about this bug go to:
https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 1917138] Re: kernel 4.15.0-136 causes dosemu2 with kvm freezes

2021-03-01 Thread Bambang Pranoto
Dear Guilherme,

Thank you very much for your reply.

On Tue, Mar 2, 2021 at 3:00 AM Guilherme G. Piccoli <
1917...@bugs.launchpad.net> wrote:

> Thanks for the report! Are you using nested virtualization (a virtual
> machine inside another virtual machine) or you run dosbox directly in your
> host/bare-metal system?
>
>
I run it directly on the real hardware/bare-metal system.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917138

Title:
  kernel 4.15.0-136 causes dosemu2 with kvm freezes

To manage notifications about this bug go to:
https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1917138] Re: kernel 4.15.0-136 causes dosemu2 with kvm freezes

2021-03-01 Thread Guilherme G. Piccoli
Thanks again Bambang and Hans-Christian for the report, it seems indeed
a bug in the kernel. I think I know what's going on, but I'd like to ask
you to perform some testing in order we can prove that, and then fix it.

So, first it'll be 2 tests - depending on the result, a third test will be 
necessary.
Please be sure to try both (1) and (2) with dos2emu using the KVM mode:

(1) For the first test, please get the Bionic proposed kernel (see [0]
for information on how to do it) - the current proposed version is
4.15.0-137. Try to reproduce with that version - I expect it to
reproduce.

(2) Now, get the build I made for you in 
https://kernel.ubuntu.com/~gpiccoli/lp1917138/ - observe that if you have the 
"linux-modules-extra" and "linux-headers" already installed on your system 
after test (1), please also install them from my build or else you might have 
issues in the boot process. To install the packages, download them from the 
link above to some directory and then run "dpkg -i *.deb" (supposing no other 
.deb file is present in that directory).
Reboot the system after a successful installation and try to reproduce the 
issue - I suspect it won't reproduce, dosemu2 should work fine even in KVM mode.

Thanks in advance,


Guilherme


[0] https://wiki.ubuntu.com/Testing/EnableProposed
(don't forget to disable the proposed repository after your tests)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917138

Title:
  kernel 4.15.0-136 causes dosemu2 with kvm freezes

To manage notifications about this bug go to:
https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1917138] Re: kernel 4.15.0-136 causes dosemu2 with kvm freezes

2021-03-01 Thread Guilherme G. Piccoli
Thanks for the report! Are you using nested virtualization (a virtual machine 
inside another virtual machine) or you run dosbox directly in your 
host/bare-metal system?
Thanks!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917138

Title:
  kernel 4.15.0-136 causes dosemu2 with kvm freezes

To manage notifications about this bug go to:
https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1917138] Re: kernel 4.15.0-136 causes dosemu2 with kvm freezes

2021-02-27 Thread Bug Watch Updater
** Changed in: dosemu2
   Status: Unknown => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917138

Title:
  kernel 4.15.0-136 causes dosemu2 with kvm freezes

To manage notifications about this bug go to:
https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1917138] Re: kernel 4.15.0-136 causes dosemu2 with kvm freezes

2021-02-27 Thread stsp
** Package changed: ubuntu => linux (Ubuntu)

** Bug watch added: github.com/dosemu2/dosemu2/issues #1404
   https://github.com/dosemu2/dosemu2/issues/1404

** Also affects: linux via
   https://github.com/dosemu2/dosemu2/issues/1404
   Importance: Unknown
   Status: Unknown

** Project changed: linux => dosemu2

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917138

Title:
  kernel 4.15.0-136 causes dosemu2 with kvm freezes

To manage notifications about this bug go to:
https://bugs.launchpad.net/dosemu2/+bug/1917138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1917138] Re: kernel 4.15.0-136 causes dosemu2 with kvm freezes

2021-02-27 Thread Ubuntu Foundations Team Bug Bot
Thank you for taking the time to report this bug and helping to make
Ubuntu better.  It seems that your bug report is not filed about a
specific source package though, rather it is just filed against Ubuntu
in general.  It is important that bug reports be filed about source
packages so that people interested in the package can find the bugs
about it.  You can find some hints about determining what package your
bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage.
You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit
https://bugs.launchpad.net/ubuntu/+bug/1917138/+editstatus and add the
package name in the text box next to the word Package.

[This is an automated message.  I apologize if it reached you
inappropriately; please just reply to this message indicating so.]

** Tags added: bot-comment

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917138

Title:
  kernel 4.15.0-136 causes dosemu2 with kvm freezes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1917138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1917138] Re: kernel 4.15.0-136 causes dosemu2 with kvm freezes

2021-02-27 Thread Hans-Christian
** No longer affects: dosemu (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917138

Title:
  kernel 4.15.0-136 causes dosemu2 with kvm freezes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1917138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1917138] Re: kernel 4.15.0-136 causes dosemu2 with kvm freezes

2021-02-27 Thread Hans-Christian
** Also affects: dosemu (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917138

Title:
  kernel 4.15.0-136 causes dosemu2 with kvm freezes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1917138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1917138] Re: kernel 4.15.0-136 causes dosemu2 with kvm freezes

2021-02-27 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: ubuntu
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917138

Title:
  kernel 4.15.0-136 causes dosemu2 with kvm freezes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1917138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1917138] Re: kernel 4.15.0-136 causes dosemu2 with kvm freezes

2021-02-27 Thread Hans-Christian
I can confirm that I also am experiencing this bug on various 16.04. LTS
systems since the latest update.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1917138

Title:
  kernel 4.15.0-136 causes dosemu2 with kvm freezes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1917138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs