All of lore.kernel.org
 help / color / mirror / Atom feed
From: Astarta <astarta@rat.ru>
To: xen-devel@lists.xen.org
Cc: David Vrabel <david.vrabel@citrix.com>
Subject: Re: [BUG] Xen vm kernel crash in get_free_entries.
Date: Thu, 17 Oct 2013 12:55:54 +0400	[thread overview]
Message-ID: <525FA61A.9080907@rat.ru> (raw)
In-Reply-To: <20131016141739.GK2924@reaktio.net>

[-- Attachment #1: Type: text/plain, Size: 1633 bytes --]

On 10/16/2013 06:17 PM, Pasi Kärkkäinen wrote:
> On Wed, Oct 16, 2013 at 02:29:07PM +0100, David Vrabel wrote:
>> On 16/10/13 07:28, Astarta wrote:
>>> Hello,
>>>
>>> This is a some kind of a follow up to the
>>> http://lists.xen.org/archives/html/xen-devel/2013-09/msg03109.html (
>>> Linux 3.11.1 HVM guest kernel crash when started with xl
>>> (get_free_entries)).
>>>
>>> Looks like we've here the similar issue.
>>>
>>> Xen VM with 3.8.13 kernel crashes in get_free_entries (kernel BUG at
>>> drivers/xen/grant-table.c:1181!), i.e in:
>>> BUG_ON(grefs_per_grant_frame == 0);. 3.11.5 kernel behaves in exactly
>>> the same way.
>>>
>>> Whole kernel log is attached. It does not contain  any "Grant tables
>>> using version" message.
>>>
>>> Seems that gnttab_request_version() has was never executed, so
>>> grefs_per_grant_frame was never set.
>>>
>>> Could you please advice on this issue?
>> I think you're missing the platform pci device required for PVHVM.
>> What's your VM's xl.cfg?
>>
> Yes, exactly, I had "xen_platform_pci=0" in my VM's xl.cfg,
> and I assume Astarta has aswell.
>
> That is because I wanted to test *without* PVHVM, and that is a valid configuration imho..
> (and works OK with xm/xend).
>
> -- Pasi

Thanks for the suggestion, but there is no xl.cfg in /etc/xen/ (we're 
using Citrix XenServer Host 6.2.0-70446c
  on rhel 6.2), so there is no where to edit xen_platform_pci option.

I've attached output from xe vm-list params=all for one of the problem 
vm. Hope its also ok.

Also 3.6 kernel works well with that configuration. I can provide it's 
boot log if needed.

Please suggest.

--
Marina

[-- Attachment #2: vm.txt --]
[-- Type: text/plain, Size: 4467 bytes --]

uuid ( RO)                          : 64c9830e-6397-0bb0-81ea-de8cad8794a3
                    name-label ( RW): Windows Server 2012 (64-bit)
              name-description ( RW): 
                  user-version ( RW): 1
                 is-a-template ( RW): false
                 is-a-snapshot ( RO): false
                   snapshot-of ( RO): <not in database>
                     snapshots ( RO): 
                 snapshot-time ( RO): 19700101T00:00:00Z
                 snapshot-info ( RO): 
                        parent ( RO): <not in database>
                      children ( RO): 
             is-control-domain ( RO): false
                   power-state ( RO): halted
                 memory-actual ( RO): 1073709056
                 memory-target ( RO): <expensive field>
               memory-overhead ( RO): 11534336
             memory-static-max ( RW): 1073741824
            memory-dynamic-max ( RW): 1073741824
            memory-dynamic-min ( RW): 1073741824
             memory-static-min ( RW): 1073741824
              suspend-VDI-uuid ( RW): <not in database>
               suspend-SR-uuid ( RW): 1b40f2b4-3284-8dbf-a0fd-c93390c7c046
                  VCPUs-params (MRW): 
                     VCPUs-max ( RW): 1
              VCPUs-at-startup ( RW): 1
        actions-after-shutdown ( RW): Destroy
          actions-after-reboot ( RW): Restart
           actions-after-crash ( RW): Restart
                 console-uuids (SRO): 
                      platform (MRW): timeoffset: -25200; nx: true; acpi: 1; apic: true; pae: true; vga: std; videoram: 8; viridian: true; device_id: 0002
            allowed-operations (SRO): changing_dynamic_range; changing_shadow_memory; changing_static_range; make_into_template; destroy; export; start_on; start; clone; copy; snapshot
            current-operations (SRO): 
            blocked-operations (MRW): 
           allowed-VBD-devices (SRO): <expensive field>
           allowed-VIF-devices (SRO): <expensive field>
                possible-hosts ( RO): <expensive field>
               HVM-boot-policy ( RW): BIOS order
               HVM-boot-params (MRW): order: dc
         HVM-shadow-multiplier ( RW): 1.000
                     PV-kernel ( RW): 
                    PV-ramdisk ( RW): 
                       PV-args ( RW): 
                PV-legacy-args ( RW): 
                 PV-bootloader ( RW): 
            PV-bootloader-args ( RW): 
           last-boot-CPU-flags ( RO): vendor: GenuineIntel; features: 0000e3bd-bfebfbff-00000001-20100800
              last-boot-record ( RO): <expensive field>
                   resident-on ( RO): <not in database>
                      affinity ( RW): 5067bedc-cc4f-4631-9270-4ab9208acad6
                  other-config (MRW): vgpu_pci: ; base_template_name: Windows Server 2012 (64-bit); mac_seed: e17b7cd1-3a70-9b84-5c56-83f3e17c10ed; install-methods: cdrom
                        dom-id ( RO): -1
               recommendations ( RO): <restrictions><restriction field="memory-static-max" max="137438953472" /><restriction field="vcpus-max" max="16" /><restriction property="number-of-vbds" max="7" /><restriction property="number-of-vifs" max="7" /></restrictions>
                 xenstore-data (MRW): vm-data: 
    ha-always-run ( RW) [DEPRECATED]: false
           ha-restart-priority ( RW): 
                         blobs ( RO): 
                    start-time ( RO): 19700101T00:00:00Z
                  install-time ( RO): 20131009T13:30:57Z
                  VCPUs-number ( RO): 0
             VCPUs-utilisation (MRO): <expensive field>
                    os-version (MRO): <not in database>
            PV-drivers-version (MRO): <not in database>
         PV-drivers-up-to-date ( RO): <not in database>
                        memory (MRO): <not in database>
                         disks (MRO): <not in database>
                      networks (MRO): <not in database>
                         other (MRO): <not in database>
                          live ( RO): <not in database>
    guest-metrics-last-updated ( RO): <not in database>
      cooperative ( RO) [DEPRECATED]: <expensive field>
                          tags (SRW): 
                     appliance ( RW): <not in database>
                   start-delay ( RW): 0
                shutdown-delay ( RW): 0
                         order ( RW): 0
                       version ( RO): 0
                 generation-id ( RO): 836232628191772189:5239282750367167867



[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2013-10-17  8:55 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-16  6:28 [BUG] Xen vm kernel crash in get_free_entries Astarta
2013-10-16 13:29 ` David Vrabel
2013-10-16 14:17   ` Pasi Kärkkäinen
2013-10-17  8:55     ` Astarta [this message]
2013-10-17 19:04       ` Astarta
2013-10-17 19:28         ` Pasi Kärkkäinen
2013-10-18  9:31           ` David Vrabel
2013-10-18  9:46             ` Ian Campbell
2013-10-18 10:31               ` Astarta
2013-10-18 11:34                 ` Paul Durrant
2013-10-18 11:06               ` Paul Durrant
2013-10-18 11:08                 ` Astarta
2013-10-18 11:27                 ` Sander Eikelenboom
2013-10-18 11:33                   ` Paul Durrant
2013-10-18 14:15               ` Pasi Kärkkäinen
2013-10-18 14:19                 ` Ian Campbell
2013-10-18 14:27                   ` Pasi Kärkkäinen
2013-10-18 23:14                   ` Sander Eikelenboom
2013-10-19 10:51                     ` Astarta
2013-10-19 11:03                       ` Ian Campbell
2013-10-19 11:58                         ` Sander Eikelenboom
2013-10-21 10:55                           ` Matt Wilson
2013-11-07  5:20                             ` Astarta
2013-11-07 13:47                               ` Ian Campbell
2013-11-12 15:56                                 ` Konrad Rzeszutek Wilk
2013-11-13  9:40                                   ` Ian Campbell
2013-11-13 12:39                                     ` Ian Campbell
2013-11-26 20:08                                     ` Konrad Rzeszutek Wilk
2013-11-26 22:00                                       ` Sander Eikelenboom
2013-11-26 22:15                                         ` Sander Eikelenboom
2013-11-26 22:55                                         ` Sander Eikelenboom
2013-11-26 23:05                                           ` Konrad Rzeszutek Wilk
2013-11-26 23:14                                             ` Sander Eikelenboom
2013-11-27  9:36                                       ` Ian Campbell
2013-11-27 14:24                                         ` Konrad Rzeszutek Wilk
2013-11-27 15:58                                           ` Ian Campbell
2013-11-27 16:40                                             ` Konrad Rzeszutek Wilk
2013-11-28 14:56                                       ` Stefano Stabellini
2013-11-29  3:26                                         ` Konrad Rzeszutek Wilk
2013-11-29 11:54                                           ` Stefano Stabellini
2013-12-09 12:57                                             ` Sander Eikelenboom
2013-12-10 15:07                                               ` Konrad Rzeszutek Wilk
2013-10-21 10:29                         ` Matt Wilson
2013-10-21 10:46                           ` David Vrabel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=525FA61A.9080907@rat.ru \
    --to=astarta@rat.ru \
    --cc=david.vrabel@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.