Re: [Qemu-devel] [PATCH v2] pc: acpi-build: make linker & RSDP tables dynamic

2014-12-11 Thread Michael S. Tsirkin
On Thu, Dec 11, 2014 at 02:18:27PM +0100, Igor Mammedov wrote: > On Thu, 11 Dec 2014 14:50:15 +0200 > "Michael S. Tsirkin" wrote: > > > On Thu, Dec 11, 2014 at 01:31:58PM +0100, Igor Mammedov wrote: > > > On Thu, 11 Dec 2014 12:37:10 +0200 > > > "Michael S. Tsirkin" wrote: > > > > > > > On Thu,

Re: [Qemu-devel] [PATCH v2] pc: acpi-build: make linker & RSDP tables dynamic

2014-12-11 Thread Igor Mammedov
On Thu, 11 Dec 2014 14:50:15 +0200 "Michael S. Tsirkin" wrote: > On Thu, Dec 11, 2014 at 01:31:58PM +0100, Igor Mammedov wrote: > > On Thu, 11 Dec 2014 12:37:10 +0200 > > "Michael S. Tsirkin" wrote: > > > > > On Thu, Dec 11, 2014 at 09:10:53AM +, Igor Mammedov wrote: > > > > linker and RSDP

Re: [Qemu-devel] [PATCH v2] pc: acpi-build: make linker & RSDP tables dynamic

2014-12-11 Thread Michael S. Tsirkin
On Thu, Dec 11, 2014 at 01:31:58PM +0100, Igor Mammedov wrote: > On Thu, 11 Dec 2014 12:37:10 +0200 > "Michael S. Tsirkin" wrote: > > > On Thu, Dec 11, 2014 at 09:10:53AM +, Igor Mammedov wrote: > > > linker and RSDP tables are build only once, so if later > > > > s/build/built/ > > > > > d

Re: [Qemu-devel] [PATCH v2] pc: acpi-build: make linker & RSDP tables dynamic

2014-12-11 Thread Igor Mammedov
On Thu, 11 Dec 2014 12:37:10 +0200 "Michael S. Tsirkin" wrote: > On Thu, Dec 11, 2014 at 09:10:53AM +, Igor Mammedov wrote: > > linker and RSDP tables are build only once, so if later > > s/build/built/ > > > during rebuild sizes of other ACPI tables change > > pointers will be patched inco

Re: [Qemu-devel] [PATCH v2] pc: acpi-build: make linker & RSDP tables dynamic

2014-12-11 Thread Michael S. Tsirkin
On Thu, Dec 11, 2014 at 01:21:13PM +0100, Igor Mammedov wrote: > On Thu, 11 Dec 2014 13:41:07 +0200 > Marcel Apfelbaum wrote: > > > On Thu, 2014-12-11 at 12:23 +0100, Igor Mammedov wrote: > > > On Thu, 11 Dec 2014 11:18:50 +0200 > > > Marcel Apfelbaum wrote: > > > > > > > On Thu, 2014-12-11 at

Re: [Qemu-devel] [PATCH v2] pc: acpi-build: make linker & RSDP tables dynamic

2014-12-11 Thread Igor Mammedov
On Thu, 11 Dec 2014 13:41:07 +0200 Marcel Apfelbaum wrote: > On Thu, 2014-12-11 at 12:23 +0100, Igor Mammedov wrote: > > On Thu, 11 Dec 2014 11:18:50 +0200 > > Marcel Apfelbaum wrote: > > > > > On Thu, 2014-12-11 at 09:10 +, Igor Mammedov wrote: > > > > linker and RSDP tables are build only

Re: [Qemu-devel] [PATCH v2] pc: acpi-build: make linker & RSDP tables dynamic

2014-12-11 Thread Marcel Apfelbaum
On Thu, 2014-12-11 at 12:23 +0100, Igor Mammedov wrote: > On Thu, 11 Dec 2014 11:18:50 +0200 > Marcel Apfelbaum wrote: > > > On Thu, 2014-12-11 at 09:10 +, Igor Mammedov wrote: > > > linker and RSDP tables are build only once, so if later > > > during rebuild sizes of other ACPI tables change

Re: [Qemu-devel] [PATCH v2] pc: acpi-build: make linker & RSDP tables dynamic

2014-12-11 Thread Igor Mammedov
On Thu, 11 Dec 2014 11:18:50 +0200 Marcel Apfelbaum wrote: > On Thu, 2014-12-11 at 09:10 +, Igor Mammedov wrote: > > linker and RSDP tables are build only once, so if later > > during rebuild sizes of other ACPI tables change > > pointers will be patched incorrectly due to wrong > > offsets.

[Qemu-devel] [PATCH v2] pc: acpi-build: make linker & RSDP tables dynamic

2014-12-11 Thread Igor Mammedov
linker and RSDP tables are build only once, so if later during rebuild sizes of other ACPI tables change pointers will be patched incorrectly due to wrong offsets. To fix it rebuild linker and RSDP tables along with the rest of ACPI tables so that they would have correct offsets. Here is a simple

Re: [Qemu-devel] [PATCH v2] pc: acpi-build: make linker & RSDP tables dynamic

2014-12-11 Thread Michael S. Tsirkin
On Thu, Dec 11, 2014 at 09:10:53AM +, Igor Mammedov wrote: > linker and RSDP tables are build only once, so if later s/build/built/ > during rebuild sizes of other ACPI tables change > pointers will be patched incorrectly due to wrong > offsets. > > To fix it rebuild linker and RSDP tables a

Re: [Qemu-devel] [PATCH v2] pc: acpi-build: make linker & RSDP tables dynamic

2014-12-11 Thread Marcel Apfelbaum
On Thu, 2014-12-11 at 09:10 +, Igor Mammedov wrote: > linker and RSDP tables are build only once, so if later > during rebuild sizes of other ACPI tables change > pointers will be patched incorrectly due to wrong > offsets. > > To fix it rebuild linker and RSDP tables along with > the rest of