<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: AIX 4.1.5 on QEMU	</title>
	<atom:link href="https://virtuallyfun.com/2026/10/28/aix-4-1-5-on-qemu/feed/" rel="self" type="application/rss+xml" />
	<link>https://virtuallyfun.com/2026/10/28/aix-4-1-5-on-qemu/</link>
	<description>Fun with Virtualization</description>
	<lastBuildDate>Thu, 12 Nov 2026 22:40:53 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>
	<item>
		<title>
		By: nop.nz		</title>
		<link>https://virtuallyfun.com/2026/10/28/aix-4-1-5-on-qemu/comment-page-1/#comment-382202</link>

		<dc:creator><![CDATA[nop.nz]]></dc:creator>
		<pubDate>Thu, 05 Nov 2026 06:50:50 +0000</pubDate>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=16062#comment-382202</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://virtuallyfun.com/2026/10/28/aix-4-1-5-on-qemu/comment-page-1/#comment-382201&quot;&gt;tenox&lt;/a&gt;.

Can indeed confirm idle works well now, both on the included AIX 4.1.5 install, and a 4.3.3 DemoPKG install I had on hand. Yours is also a much nicer solution than a kludgy patch to the kernel too : )]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://virtuallyfun.com/2026/10/28/aix-4-1-5-on-qemu/comment-page-1/#comment-382201">tenox</a>.</p>
<p>Can indeed confirm idle works well now, both on the included AIX 4.1.5 install, and a 4.3.3 DemoPKG install I had on hand. Yours is also a much nicer solution than a kludgy patch to the kernel too : )</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: tenox		</title>
		<link>https://virtuallyfun.com/2026/10/28/aix-4-1-5-on-qemu/comment-page-1/#comment-382201</link>

		<dc:creator><![CDATA[tenox]]></dc:creator>
		<pubDate>Wed, 04 Nov 2026 07:34:58 +0000</pubDate>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=16062#comment-382201</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://virtuallyfun.com/2026/10/28/aix-4-1-5-on-qemu/comment-page-1/#comment-382196&quot;&gt;nop.nz&lt;/a&gt;.

I have updated the qemu binaries with anti idle. Could you try?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://virtuallyfun.com/2026/10/28/aix-4-1-5-on-qemu/comment-page-1/#comment-382196">nop.nz</a>.</p>
<p>I have updated the qemu binaries with anti idle. Could you try?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: tenox		</title>
		<link>https://virtuallyfun.com/2026/10/28/aix-4-1-5-on-qemu/comment-page-1/#comment-382199</link>

		<dc:creator><![CDATA[tenox]]></dc:creator>
		<pubDate>Mon, 02 Nov 2026 12:26:14 +0000</pubDate>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=16062#comment-382199</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://virtuallyfun.com/2026/10/28/aix-4-1-5-on-qemu/comment-page-1/#comment-382196&quot;&gt;nop.nz&lt;/a&gt;.

Yeah it frustrates me too. I&#039;m going to get it fixed. Thanks for the gist it helped! I&#039;ll post an update!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://virtuallyfun.com/2026/10/28/aix-4-1-5-on-qemu/comment-page-1/#comment-382196">nop.nz</a>.</p>
<p>Yeah it frustrates me too. I&#8217;m going to get it fixed. Thanks for the gist it helped! I&#8217;ll post an update!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: nop.nz		</title>
		<link>https://virtuallyfun.com/2026/10/28/aix-4-1-5-on-qemu/comment-page-1/#comment-382196</link>

		<dc:creator><![CDATA[nop.nz]]></dc:creator>
		<pubDate>Fri, 30 Oct 2026 22:59:03 +0000</pubDate>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=16062#comment-382196</guid>

					<description><![CDATA[I don&#039;t know if it bugs anyone else, but for me the biggest frustration I had with AIX on QEMU was that it didn&#039;t support any form of idle, and I&#039;m not a huge fan of leaving an emulator to chew up an entire CPU core the whole time it&#039;s running. I wrote a quick and dirty patch to get idle working on AIX 4.3.3 and have had that running for some months without noticeable issue, and it looks like it works (with a bit of tweaking) on this system too. I figure it might be handy, so here it is.

You will need to rebuild QEMU to tell it to check for idle on the 604 processor (as the real one didn&#039;t actually support idling I don&#039;t think...), and then patch the kernel. I&#039;ve only tried this with the uniprocessor kernel; I suspect it wouldn&#039;t work with the multiprocessor one, at least not without a bit of tweaking.

The QEMU patch is just changing &quot;pcc-&#062;check_pow = check_pow_nocheck;&quot; to &quot;pcc-&#062;check_pow = check_pow_hid0;&quot; in target/ppc/cpu_init.c. And the kernel can be patched with the below commands from within AIX:
# cd /usr/lib/boot
# cp unix_up unix_up.bkp
# printf &#039;\174\020\372\246\144\000\000\200\174\020\373\246\174\000\000\246\144\000\000\004\174\000\004\254\174\000\001\044\114\000\001\054\110\001\116\006&#039; &#124; dd of=unix_up obs=1 seek=21960 conv=notrunc
# printf &#039;\100\236\124\002&#039; &#124; dd of=unix_up obs=1 seek=86036 conv=notrunc
# bosboot -a

Then reboot, and if it all went OK, the CPU usage should be much reduced.

Some disparate notes on the process are here which explain the logic a bit more: https://gist.github.com/0x90nz/64accadfcda766637b731e4f3323f470]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know if it bugs anyone else, but for me the biggest frustration I had with AIX on QEMU was that it didn&#8217;t support any form of idle, and I&#8217;m not a huge fan of leaving an emulator to chew up an entire CPU core the whole time it&#8217;s running. I wrote a quick and dirty patch to get idle working on AIX 4.3.3 and have had that running for some months without noticeable issue, and it looks like it works (with a bit of tweaking) on this system too. I figure it might be handy, so here it is.</p>
<p>You will need to rebuild QEMU to tell it to check for idle on the 604 processor (as the real one didn&#8217;t actually support idling I don&#8217;t think&#8230;), and then patch the kernel. I&#8217;ve only tried this with the uniprocessor kernel; I suspect it wouldn&#8217;t work with the multiprocessor one, at least not without a bit of tweaking.</p>
<p>The QEMU patch is just changing &#8220;pcc-&gt;check_pow = check_pow_nocheck;&#8221; to &#8220;pcc-&gt;check_pow = check_pow_hid0;&#8221; in target/ppc/cpu_init.c. And the kernel can be patched with the below commands from within AIX:<br />
# cd /usr/lib/boot<br />
# cp unix_up unix_up.bkp<br />
# printf &#8216;\174\020\372\246\144\000\000\200\174\020\373\246\174\000\000\246\144\000\000\004\174\000\004\254\174\000\001\044\114\000\001\054\110\001\116\006&#8217; | dd of=unix_up obs=1 seek=21960 conv=notrunc<br />
# printf &#8216;\100\236\124\002&#8217; | dd of=unix_up obs=1 seek=86036 conv=notrunc<br />
# bosboot -a</p>
<p>Then reboot, and if it all went OK, the CPU usage should be much reduced.</p>
<p>Some disparate notes on the process are here which explain the logic a bit more: <a href="https://gist.github.com/0x90nz/64accadfcda766637b731e4f3323f470" rel="nofollow ugc">https://gist.github.com/0x90nz/64accadfcda766637b731e4f3323f470</a></p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
